I get a TSError warning me about missing dependencies (the README linked below) when ts-node tries to load a referenced project.
{
"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"
}
}
Expected Behavior
I would expect code that doesn't error when trying to compile it with
tscto compile when run throughts-node.Actual Behavior
I get a TSError warning me about missing dependencies (the README linked below) when ts-node tries to load a referenced project.
Reproduction
I've created a minimal reproduction repo for my scenario here with the behaviour/stack trace and command to reproduce.
Specifications
please see the reproduction repo for the tsconfig structure, here is the effective tsconfig:
Windows 10 Pro 19043.1052