ant-design / ant-design-web3

🥳 Efficient react components for building dapps easier | Connect crypto wallets and more Web3 UI components | Web3 icons | Supports Ethereum, Solana, Bitcoin, TON, Sui and others.
https://web3.ant.design
MIT License
866 stars 145 forks source link

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

Open dlnuchunge opened 6 months ago

dlnuchunge commented 6 months ago

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 commented 6 months ago

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

tolgahanbora commented 6 months ago

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

What should we do ?

gin-lsl commented 6 months ago

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.

jh-9527 commented 6 months ago

Which version to use?

gin-lsl commented 6 months ago

Which version to use?

You can use 6.16.3

kratos2377 commented 6 months ago

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

linuxhjkaru commented 6 months ago

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 commented 6 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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.