I\'m building a node app, and inside each file in .js used to doing this to require in various packages.
let co = require(\"co\");
But gett
In my case the following tsconfig.json solved problem:
tsconfig.json
{ "compilerOptions": { "esModuleInterop": true, "target": "ES2020", "moduleResolution": "node" } }
There should be no type: module in package.json.
type
module
package.json