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 when executing "How to Sign and Verify a Message" example #683

Open
TheGP opened this issue Jan 5, 2025 · 0 comments
Open

Error when executing "How to Sign and Verify a Message" example #683

TheGP opened this issue Jan 5, 2025 · 0 comments

Comments

@TheGP
Copy link

TheGP commented Jan 5, 2025

Error when executing https://solana.com/developers/cookbook/wallets/sign-message

/index.js:2
	generateKeyPair,
	^^^^^^^^^^^^^^^
SyntaxError: Named export 'generateKeyPair' not found. The requested module '@solana/web3.js' 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 '@solana/web3.js';

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