如何使用纱线运行 uniswap 接口

问题描述

我已经从 git 克隆了 uniswap-interface。我运行了 yarn start 命令并收到以下输出

yarn run v1.22.10
$ yarn compile-contract-types && react-scripts start
$ yarn compile-external-abi-types && yarn compile-v3-contract-types
$ typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json'
Successfully generated 2 typings!
$ typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'
'v3-periphery)' is not recognized as an internal or external command,operable program or batch file.
error Command Failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command Failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command Failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我错过了什么?

解决方法

变化

./node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json

./node_modules/@uniswap/v3-core/artifacts/contracts/**/*.json

在 package.json 文件中为我修复了它。