Skip to content

[Bug]: @ledgerhq/errors crashes when imported from an ESM module #15967

@alcuadrado

Description

@alcuadrado

Impacted Library name

@ledgerhq/errors

Impacted Library version

11.11.0

Describe the bug

Importing this library from an ESM module leads to import errors that crash your application. I believe it's due to a misconfiguration of typescript or your build system.

Expected behavior

It shouldn't throw on imports.

Additional context

Here's a minimal reproduction: https://github.com/alcuadrado/ledgerhq-errors-repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglibrariesImpacts the LibrariestriageIn need of triage

    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