-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
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.
fix
Metadata
Metadata
Assignees
Labels
No labels