The Error Warning: To load an ES module, set "type": "module" in the package.json or is caused by the following Bug in ts-node: https://github.com/TypeStrong/ts-node/issues/935
The Bug is closed, and there is a proposal to solve it, but it is still open: https://github.com/TypeStrong/ts-node/issues/1007
I don’t need "type": "module" in package.json.
In tsconfig.json, I’m using using "module": "commonjs" instead of "module": "es6",.
I noted this as technical debt pending that ts-node issue #1007 is resolved.