-
Notifications
You must be signed in to change notification settings - Fork 964
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
'BitKeepWalletAdapter' from non EcmaScript module error #330
Comments
this is my package.json content
|
I am getting the same thing, here is my package.json:
|
@mikejhale Hi,Have you found a working solution so far,Can you share it with me? |
I see you're using Ionic @Sunnyjson. Are you building a mobile app? This might be the difference between your setup and the examples we have in Your problem sounds similar to ionic-team/ionic-framework#20357. Are you able to repro the problem on a blank Ionic starter project? I don't know what Ionic's build system is like (ie. what actually happens when you run If you're comfortable sharing your code I can take a look, or if you are able to repro the problem on a brand-new Ionic 6 starter app then I'd be happy to look at that too! |
@steveluscher |
@steveluscher I am getting the exact same error and not using Ionic. I'm using the code from this repo: https://github.com/dabit3/complete-guide-to-full-stack-solana-development/tree/main/example2 |
@mikejhale it looks like you're using CRA 4, which is not supported. However, there is a CRA5 starter project which uses react-app-rewired to properly configure the polyfills needed by Webpack 5. |
@Sunnyjson I would recommend checking out the CRA5 starter project as well. I don't know how Ionic projects are built, but this error is ultimately caused by a build tool, usually Webpack, not handling ESM imports and Node API polyfills. |
Oh, that's definitely it. Both of your package.json files are declaring react-scripts v4 (CRA 4) which is not supported. Please try the config in the starter project. |
Hi,I got the error message
./node_modules/@solana/wallet-adapter-wallets/lib/esm/adapters.mjs Can't import the named export 'BitKeepWalletAdapter' from non EcmaScript module (only default export is available)
Sorry I looked at #241 didn't find the right solution,Tried the upgrade version to no avail, Can someone tell me how to fix it, thanks
The text was updated successfully, but these errors were encountered: