Open Vampire opened 4 years ago
The second line in the stack trace is
this.buildDependencies(this.program.getSourceFile(TsInternals_1.tsInternals.normalizePath(referenceDirective.resolvedFileName)));
I added before three outputs
console.log(referenceDirective.resolvedFileName)
console.log(TsInternals_1.tsInternals.normalizePath(referenceDirective.resolvedFileName))
console.log(this.program.getSourceFile(TsInternals_1.tsInternals.normalizePath(referenceDirective.resolvedFileName)))
Result is
D:/Sourcecode/other/setup-wsl/build/js/node_modules/@types/semver/node_modules/@types/node/ts3.7/index.d.ts
D:/Sourcecode/other/setup-wsl/build/js/node_modules/@types/semver/node_modules/@types/node/ts3.7/index.d.ts
undefined
The file printed in the first two lines actually exists
~And~
console.log(JSON.stringify(this.program.getFilesByNameMap()))
~outputs~
{}
~:-(~
Forget the last comment, that seems to be irrelevant,
when I directly call Dukat on it using node ../build/js/node_modules/dukat/bin/dukat-cli.js ../build/js/node_modules/@types/semver/index.d.t
, it runs through, while the filesByName
still shows as empty.
Interesting, now that I switched to Kotlin/JS 1.4.0, the error vanished, using the exact same Dukat version.
I added
@types/semver
to my dependencies and now Dukat is failing. Seems to be similar to #207.