-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript errors with the ethers added functionality, like ethers.getSigners()
#6109
Comments
Hi @Muhammad-Altabba, thanks for raising this question.
If you do have a specific reason to compile your TS code independently (with tsc), could you share more about your use case? Sometimes issues can come from a misconfigured |
Thanks @ChristopherDedominici , So, I wanted to double-check the issue's root cause. And I ran So, if there is a way to let vscode identify the types correctly, without getting Or what do you suggest? |
Hey @Muhammad-Altabba can I check which package manager you are installing with, is it |
Yes, it is |
I am going to close this. It looks like it was a temporary pnpm issue. With the latest Hardhat I was able to:
|
Version of Hardhat
2.22.17
What happened?
After importing "@nomicfoundation/hardhat-toolbox"; at hardhat.config.ts, the
hardhat
commands work. But compiling the project withtsc
gives errors with the ethers added functionality, likeethers.getSigners()
.Minimal reproduction steps
The project was created with
pnpm add -D hardhat
andnpx hardhat init
using the templateCreate a TypeScript project
.Here is the tsconfig.json file:
And here is the hardhat.config.ts:
Search terms
ethers
The text was updated successfully, but these errors were encountered: