Skip to content

No matching export in "node_modules/@ledgerhq/errors/lib-es/index.js" for import "TransportRaceCondition" #3

@gameuser1982

Description

@gameuser1982

I am getting the following error with the frontend when I run using yarn dev:

✘ [ERROR] No matching export in "node_modules/@ledgerhq/errors/lib-es/index.js" for import "TransportRaceCondition"

    node_modules/@ledgerhq/hw-transport/lib-es/Transport.js:74:9:
      74 │ import { TransportRaceCondition, TransportError, StatusCodes, getAltStatusM...
         ╵          ~~~~~~~~~~~~~~~~~~~~~~

The fix listed below here doesn't work for yarn:

anza-xyz/wallet-adapter#949

Someone suggested an alternative fix that I will try:

Goto: node_modules/@ledgerhq/hw-transport/node_modules/@ledgerhq/errors/lib-es/index.js

Add line:

export const TransportRaceCondition = createCustomErrorClass("TransportPendingOperation");

This is an open issue for a few weeks, I wonder why nobody else experienced this? I didn't notice this issue in the tutorial video either. I appreciate what you are doing for us Mr Raza!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions