Can not import from ../typechain-types
| Lesson 6: Hardhat Simple Storage [TypeScript]
#493
Answered
by
dibakarsutradhar
sanjayojha
asked this question in
Q&A
-
Lesson 6: Hardhat Simple Storage [TypeScript] While writing test from import { SimpleStorage, SimpleStorage__factory } from "../typechain-types"; I am seeing following error. Cannot find module '../typechain-types' or its corresponding type declarations the |
Beta Was this translation helpful? Give feedback.
Answered by
dibakarsutradhar
Jun 22, 2022
Replies: 1 comment 1 reply
-
You need to generate the Also, check if you have typechain installed in your project. If not, you can install using this command, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sanjayojha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to generate the
typechain-types
by writing this command line in your terminal -hh typechain
oryarn hardhat typechain
.Also, check if you have typechain installed in your project. If not, you can install using this command,
yarn add --dev typechain