So when I used "moduleResolution": "node" in my tsconfig.json the whole twc just braked in the build with this output:
/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:3495
throw e;
^
Error: Debug Failure.
at Object.resolveModuleName (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:26116:30)
at loader_1 (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:69295:78)
at loadWithLocalCache (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:69227:42)
at resolveModuleNamesWorker (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:69296:88)
at resolveModuleNamesReusingOldState (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:69412:24)
at processImportedModules (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:70364:35)
at findSourceFile (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:70274:17)
at args (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:70200:85)
at getSourceFileFromReferenceWorker (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:70173:34)
at processSourceFile (/usr/lib/node_modules/twc/node_modules/typescript/lib/typescript.js:70200:13)
Solution was just remove the moduleResolution option, but a better explanation would be appreciated :)
So when I used
"moduleResolution": "node"
in mytsconfig.json
the whole twc just braked in the build with this output:Solution was just remove the moduleResolution option, but a better explanation would be appreciated :)