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

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

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

Any idea how to resolve this?
I am having error running npx hardhat compile command. The error is ``.

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

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

Any idea how to resolve this?