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

ERROR in ./node_modules/@solana/wallet-adapter-ledger/node_modules/@ledgerhq/hw-transport/lib-es/Transport.js 225:26-48 #827

Open
dlnuchunge opened this issue Apr 25, 2024 · 11 comments

Comments

@dlnuchunge
Copy link

ERROR in ./node_modules/@solana/wallet-adapter-ledger/node_modules/@ledgerhq/hw-transport/lib-es/Transport.js 225:26-48
export 'TransportRaceCondition' (imported as 'TransportRaceCondition') was not found in '@ledgerhq/errors'

image
image

@gin-lsl
Copy link
Collaborator

gin-lsl commented Apr 25, 2024

It looks like it needs upgrade version...
anza-xyz/wallet-adapter#949

@tolgahanbora
Copy link

tolgahanbora commented Apr 28, 2024

It looks like it needs upgrade version... anza-xyz/wallet-adapter#949

What should we do ?

@gin-lsl
Copy link
Collaborator

gin-lsl commented Apr 29, 2024

It looks like it needs upgrade version... anza-xyz/wallet-adapter#949

What should we do ?

You can temporarily override the version of @ledgerhq/errors to resolve this issue, as done in this PR anza-xyz/wallet-adapter#949, by specifying the required version in the package.json.

@jh-9527
Copy link

jh-9527 commented Apr 29, 2024

Which version to use?

@gin-lsl
Copy link
Collaborator

gin-lsl commented Apr 29, 2024

Which version to use?

You can use 6.16.3

@kratos2377
Copy link

Still having this issue, even after adding overrides in package.json. Is there any other solution ?

@linuxhjkaru
Copy link

You can fix it temporarily by adding below line into file node_modules/@ledgerhq/hw-transport/node_modules/@ledgerhq/errors/lib-es/index.js

export const TransportRaceCondition = createCustomErrorClass("TransportPendingOperation");

@coredomain
Copy link

You can fix it temporarily by adding below line into file node_modules/@ledgerhq/hw-transport/node_modules/@ledgerhq/errors/lib-es/index.js

export const TransportRaceCondition = createCustomErrorClass("TransportPendingOperation");

If this is the final solution, you will probably need to include the node_module package in your version control repository. If you have an automated build in your pipeline, the build will fail, too. Oh, Boy!

@keolamation
Copy link

I'm not gonna lie, I'm kinda getting sick an tired how slow and ass support is for solana, never had issues so often with other blockchains. Solana stack exchange gives no answers, the solana devs give frequently $%^ updates, and to erven implement the stuff they DO update you gotta spend ours digging through code with no decent explainations. || close to never touching this chain again if I even get this Dapp working... hhhh

@keolamation
Copy link

You can fix it temporarily by adding below line into file node_modules/@ledgerhq/hw-transport/node_modules/@ledgerhq/errors/lib-es/index.js

export const TransportRaceCondition = createCustomErrorClass("TransportPendingOperation");

If this is the final solution, you will probably need to include the node_module package in your version control repository. If you have an automated build in your pipeline, the build will fail, too. Oh, Boy!

DOESN'T WORK

@gin-lsl
Copy link
Collaborator

gin-lsl commented May 21, 2024

Hello everyone, we released a new version today, updating @ant-design/web3-solana to 1.1.3. This version has removed some unused dependencies. You can try it out to see if it solves your problem.

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

8 participants