I have kind of a problem. I have some typescript features and I try to compile then in js.
this is my tsconfig
{
"compilerOptions": {
"target": "esnext",
"module": "es6",
"esModuleInterop": true,
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
},
"include": ["src/**/*"],
}
In the end I run tsc and that work well, my js files are created.
But when I run node myfile.js I get an error:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/salsa/test/analyst/amlf-analyst/src/pipes/thunes/p01'
and yes I know the .js is missing at the end of the path. But in my ts files I get an error If I specify the extension. So who can tsc compile the path with the js exension at the end.
Thanks a lot :)