Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Named export 'connectors' not found. #61

Open
nshunt639 opened this issue Aug 4, 2022 · 0 comments
Open

Error: Named export 'connectors' not found. #61

nshunt639 opened this issue Aug 4, 2022 · 0 comments

Comments

@nshunt639
Copy link

nshunt639 commented Aug 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant