首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >类型-目标醚-v5不被识别为内部命令。

类型-目标醚-v5不被识别为内部命令。
EN

Stack Overflow用户
提问于 2022-07-24 17:39:08
回答 1查看 236关注 0票数 3

我的package.json文件中有:

代码语言:javascript
复制
 "scripts": {
    "compile-contract-types": "yarn compile-external-abi-types && yarn compile-v3-contract-types",
    "compile-external-abi-types": "typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json'",
    "compile-v3-contract-types": "typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'",

当我尝试运行这个程序时,我总是有这个错误(我在窗口上),有什么想法吗?

代码语言:javascript
复制
typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json' is not recognized as an internal command
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-08-04 21:08:52

终于找到了..。用'./node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'取代./node_modules/@uniswap/v3-core/artifacts/contracts/**/*.json

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73100669

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档