You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following error when I include import UAuthWeb3Modal from from '@uauth/web3modal'; in Next.js
SyntaxError: Named export 'connectors' not found. The requested module 'web3modal' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'web3modal';
I used const UAuthWeb3Modal = require('@uauth/web3modal') as a workaround, but it would be great if we can make the import working.
I believe the issues is mostly due to the inappropriate import and export in web3modal library, but I guess we can add the workaround in your library.
The text was updated successfully, but these errors were encountered:
I'm getting the following error when I include
import UAuthWeb3Modal from from '@uauth/web3modal';
in Next.jsI used
const UAuthWeb3Modal = require('@uauth/web3modal')
as a workaround, but it would be great if we can make the import working.I believe the issues is mostly due to the inappropriate import and export in web3modal library, but I guess we can add the workaround in your library.
The text was updated successfully, but these errors were encountered: