microsoft / nodejstools Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
outDir and rootDir does not work for tests or debugging of TypeScript #1243
Comments
|
@lostfields It looks we do not properly pick up typescript project properties in the case where a We have the same core problem @billti, @Jasonra |
|
I really hope this get fixed soon as this makes my npm packages a lot cleaner and a lot nicer when referencing sub modules. If I'm naming outDir 'lib' instead it will be like 'import .... from "my-npm-package/lib/app"'. Looks a lot nicer than typing 'my-npm-package/lib/src/app'. |
|
I think this is related to #1241 where Test Explorer/Mocha can't discover the tests. |
|
I am experiencing this particular bug as well. |
|
@ZenSoftware for now, disable tsconfig and try to apply the same settings to "Project > Properties" under "TypeScript Build" and then enable your tsconfig again. |
|
Ahhh.... please fix this for Visual Studio 2017 with inbuilt typescript. Where do I report that |
|
still not fixed :-( |
|
This looks like it's much more work than I expected. Closing in favor for #1949 which captures more use cases. |
|
Can't you help me fix this ?. I change outDir but my vs push notification program can't not file app.js in source dist '.'. Thank you so much. |
Expected Behavior
Debugging of TypeScript should work with outDir + rootDir in tsconfig
Actual Behavior
Throws an error complaining that corresponding javascript file isn't found
Steps to Reproduce
{ "compilerOptions": { "target": "ES6", "module": "commonjs", "declaration": true, "sourceMap": true, "outDir": "./build", "rootDir": "./src" }, "exclude": [ "build" ] }Debugger listening on [::]:5858 module.js:442 throw err; ^ Error: Cannot find module '[project-path]\src\app.js' at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Timeout.Module.runMain [as _onTimeout] (module.js:575:10) at tryOnTimeout (timers.js:224:11) at Timer.listOnTimeout (timers.js:198:5) Press any key to continue...The text was updated successfully, but these errors were encountered: