Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant