Also ran into this issue. create-react-app Typescript template had created a tsconfig file for me, that had "module": "esnext". Changing it to "module": "commonjs" ended up fixing the issue for me.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I am doing this project in typescript, when I run "npx hardhat node" it throws an error saying
What am I missing here ?
I also ran into this with typescript for hardhat. Did you ever find a solution?
Update:
just found a fix:
update the hardhat.config.ts file with
"module": "commonjs"
Also ran into this issue.
create-react-app
Typescript template had created atsconfig
file for me, that had"module": "esnext"
. Changing it to"module": "commonjs"
ended up fixing the issue for me.