Skip to content

SyntaxError: Named export 'Bip32PublicKey' not found #5

@mahnunchik

Description

@mahnunchik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions