【发布时间】:2022-12-20 13:26:39
【问题描述】:
我正在使用打字稿和纱线建立一个安全帽的新项目。
我正在关注https://hardhat.org/guides/typescript.html,当我到达步骤时“我们需要对您的配置应用三个更改,以便它与 TypeScript 一起工作:" 有一条指令将 hardhat.config.js 更新为 hardhat.config.ts
说明和示例代码说放置import { task } from "hardhat/config";,但 vscode 和编译器说 Cannot find module 'hardhat/config' or its corresponding type declarations.
我错过了什么?
【问题讨论】:
标签: node.js typescript solidity yarnpkg hardhat