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

Can't import the named export 'BaseMessageSignerWalletAdapter' from non EcmaScript module (only default export is available) #268

Closed
sparkydasrath opened this issue Jan 18, 2022 · 1 comment

Comments

@sparkydasrath
Copy link

Used create-react-app and did the general installs to work with PhantomWallet.
When I run npm run build I ended up with:
./node_modules/@solana/wallet-adapter-phantom/lib/esm/adapter.mjs Can't import the named export 'BaseMessageSignerWalletAdapter' from non EcmaScript module (only default export is available)

My package.json is

"dependencies": {
    "@solana/wallet-adapter-base": "^0.9.2",
    "@solana/wallet-adapter-react": "^0.15.2",
    "@solana/wallet-adapter-react-ui": "^0.9.4",
    "@solana/wallet-adapter-wallets": "^0.14.2",
    "@testing-library/jest-dom": "^5.16.1",
    "@testing-library/react": "^12.1.2",
    "@testing-library/user-event": "^13.5.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-scripts": "4.0.3",
    "web-vitals": "^2.1.3"
  },

I am seeing that #265 is a similar-ish issue as well?

@sparkydasrath
Copy link
Author

I deleted the node_modules folder and re-ran
yarn add @solana/wallet-adapter-base \ @solana/wallet-adapter-react \ @solana/wallet-adapter-react-ui \ @solana/wallet-adapter-wallets \ @solana/web3.js \ react from https://solana-labs.github.io/wallet-adapter/
and that seems to sort it out

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