ant-design-web3 icon indicating copy to clipboard operation
ant-design-web3 copied to clipboard

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

Open dlnuchunge opened this issue 10 months ago • 11 comments

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

dlnuchunge avatar Apr 25 '24 13:04 dlnuchunge

It looks like it needs upgrade version... https://github.com/anza-xyz/wallet-adapter/pull/949

gin-lsl avatar Apr 25 '24 13:04 gin-lsl

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

What should we do ?

tolgahanbora avatar Apr 28 '24 19:04 tolgahanbora

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 https://github.com/anza-xyz/wallet-adapter/pull/949, by specifying the required version in the package.json.

gin-lsl avatar Apr 29 '24 03:04 gin-lsl

Which version to use?

jh-9527 avatar Apr 29 '24 03:04 jh-9527

Which version to use?

You can use 6.16.3

gin-lsl avatar Apr 29 '24 03:04 gin-lsl

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

kratos2377 avatar May 08 '24 19:05 kratos2377

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");

linuxhjkaru avatar May 09 '24 02:05 linuxhjkaru

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!

coredomain avatar May 16 '24 18:05 coredomain

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 avatar May 19 '24 05:05 keolamation

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

keolamation avatar May 19 '24 05:05 keolamation

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.

gin-lsl avatar May 21 '24 07:05 gin-lsl