I would expect code that doesn't error when trying to compile it with tsc
to compile when run through ts-node
.
I get a TSError warning me about missing dependencies (the README linked below) when ts-node tries to load a referenced project.
ReproductionI've created a minimal reproduction repo for my scenario here with the behaviour/stack trace and command to reproduce.
Specifications{
"compilerOptions": {
"noEmit": false,
"paths": {
"@org/liba": [
"a/liba"
]
},
"esModuleInterop": true,
"target": "es2017",
"resolveJsonModule": true,
"moduleResolution": "node",
"baseUrl": "../..",
"rootDir": "../..",
"outDir": "./.ts-node",
"sourceMap": true,
"inlineSourceMap": false,
"inlineSources": true,
"declaration": false,
"module": "commonjs"
},
"references": [
{
"path": "../../a/liba"
}
],
"ts-node": {
"cwd": "[SHORTENED]\\ts-node-repro\\b\\btest",
"projectSearchDir": "[SHORTENED]\\ts-node-repro\\b\\btest",
"require": [],
"project": "[SHORTENED]/ts-node-repro/b/btest/tsconfig.json"
}
}
fourpastmidnight, Schmavery, rtbenfield, gund, iron-cherep and 2 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4