You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a package.json with "type": "module" and am attempting to get Hardhat to play nice with TypeScript and ESM.
I've noticed that if I have a config file hardhat.config.cjs, then it doesn't generate any types. However, if I rename that same file to hardhat.config.cts (with a test patch for hardhat so that it supports this config file), suddenly it generates types. Here's a log to demo this:
I have a package.json with
"type": "module"
and am attempting to get Hardhat to play nice with TypeScript and ESM.I've noticed that if I have a config file
hardhat.config.cjs
, then it doesn't generate any types. However, if I rename that same file tohardhat.config.cts
(with a test patch forhardhat
so that it supports this config file), suddenly it generates types. Here's a log to demo this:The text was updated successfully, but these errors were encountered: