Uniswap / smart-order-router

GNU General Public License v3.0
386 stars 388 forks source link

do you have the problem? #577

Open wade-liwei opened 2 months ago

wade-liwei commented 2 months ago

wuban@wuban:~/smart-order-router$ ./bin/cli quote --tokenIn 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 --tokenOut 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 --amount 1000 --exactIn --recipient 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B --protocols v2,v3 (node:1261712) TSError Plugin: @uniswap/smart-order-router: ⨯ Unable to compile TypeScript: src/providers/token-provider.ts:7:41 - error TS2307: Cannot find module '../types/v3/factories/IERC20Metadata__factory' or its corresponding type declarations.

7 import { IERC20Metadatafactory } from '../types/v3/factories/IERC20Metadatafactory';


module: @oclif/config@1.18.3
task: toCached
plugin: @uniswap/smart-order-router
root: /home/wuban/smart-order-router
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1261712) TSError Plugin: @uniswap/smart-order-router: ⨯ Unable to compile TypeScript:
src/providers/token-provider.ts:7:41 - error TS2307: Cannot find module '../types/v3/factories/IERC20Metadata__factory' or its corresponding type declarations.

7 import { IERC20Metadata__factory } from '../types/v3/factories/IERC20Metadata__factory';

module: @oclif/config@1.18.3 task: toCached plugin: @uniswap/smart-order-router root: /home/wuban/smart-order-router See more details with DEBUG=* › Error: command quote not found

guotie commented 1 month ago

same problem

guotie commented 1 month ago

I known, should run

npm run build

first