Lesson 7: TypeError: ethers.getContract is not a function #5504
-
|
Hi, really need someone's help here. I`m testing FundMe constructor and having this error: code FundMe.test.js looks like this: I`ve read about similar issues, tried to correct my dependencies but without success. Any tips how I can solve that problem? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
Hey @CubikRuubik can you show your package.json file? |
Beta Was this translation helpful? Give feedback.
-
|
Hello @Noveleader , sure |
Beta Was this translation helpful? Give feedback.
-
|
@CubikRuubik You should use the ethers from the hardhat dependency not from the ethers dependency. Because this |
Beta Was this translation helpful? Give feedback.
@CubikRuubik No, just get the ethers from hardhat like this