Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.
This repository was 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

Description

@TheGP

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';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions