tronprotocol / tronwallet-adapter

MIT License
64 stars 29 forks source link

你这什么玩意,堂堂的官方文档demos里的例子竟然跑不起来 #65

Closed stephenyaoshun closed 4 months ago

stephenyaoshun commented 5 months ago

vite-app@0.0.0 dev vite

VITE v5.2.12 ready in 140 ms

➜ Local: http://localhost:5003/
➜ Network: http://192.168.10.21:5003/
➜ press h + enter to show help
✘ [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, getAltStatusMessage, TransportStatusError, }...                                                                                
     ╵          ~~~~~~~~~~~~~~~~~~~~~~     
way2ex commented 5 months ago

Sorry for the convenience. If you copy the demos out of this project , please install the @ledgerhq/errors@6.10.0:

npm i @ledgerhq/errors@6.10.0

This error occurs because @ledgerhq/errors have a BREAKING change which removes the TransportRaceCondition in a minor version update.

Osub commented 5 months ago

安装了也不行呀

way2ex commented 5 months ago

安装了也不行呀 Please try to install the following dependencies:

npm i @ledgerhq/errors@6.10.0
npm i @ledgerhq/devices@6.27.1
npm i @ledgerhq/hw-transport@6.27.1
npm i @ledgerhq/hw-transport-webhid@6.27.1