Getting ERR_REQUIRE_ESM error with even after using import

Viewed 11

I am having error running npx hardhat compile command. The error is ``. error

But I am not using any require statement in hardhat.config.ts file: hardhat config file

And also added "type":"module" in package.json: package json file

Any idea how to resolve this?

0 Answers
Related