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

SyntaxError: Named export 'Bip32PublicKey' not found #5

Open
mahnunchik opened this issue Nov 1, 2022 · 0 comments
Open

SyntaxError: Named export 'Bip32PublicKey' not found #5

mahnunchik opened this issue Nov 1, 2022 · 0 comments

Comments

@mahnunchik
Copy link
Contributor

Hello, I've faced with the error in version 1.0.4:

import { Bip32PublicKey } from '@stricahq/bip32ed25519';
         ^^^^^^^^^^^^^^
SyntaxError: Named export 'Bip32PublicKey' not found. The requested module '@stricahq/bip32ed25519' 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:

Library version 1.0.3 works as expected with named imports.

Workaround:

import bip32ed25519 from '@stricahq/bip32ed25519';
const { Bip32PublicKey } = bip32ed25519;

But it would be helpful to support named imports in module only environment.

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