I have the following file:
myProjectRoot/src/server.ts
Inside this it has:
import testRouter from 'module/lib';
I have a library which exports a default value at:
myProjectRoot/src/module/lib.ts
My myProjectRoot/tsconfig.json file:
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"lib": [
"es6"
],
"sourceMap": true,
"baseUrl": "./src/"
},
"exclude": [
"node_modules"
]
}
I get the error: [ERROR] 15:50:42 Error: Cannot find module 'module/lib'


src/if the tsconfig is on the root alreadypaths