We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: 3.7.5 VSCode Version: 1.41.1 2019-12-18
Search Terms: VSCode TypeScript Default Import Renamed Can't Debug Watch Inspect
Code
filea.ts
const a: string = "hello"; export default a;
fileb.ts
import a from "./filea" console.log(a);
tsconfig.json
{ "compilerOptions": { "lib": [ "es6" ], "moduleResolution": "node", "module": "commonjs", "target": "es6", "sourceMap": true } }
Expected behavior:
Works correctly in runtime Variable a (imported one) can be inspected
Actual behavior:
Works correctly in runtime Variable a (imported one) can't be inspected neither watched as VS Code says: not available
The problem is the variable a does not exist at runtime as the import is transpiled as:
const filea_1 = require("./filea"); console.log(filea_1.default);
Watching of filea_1.default works correctly, of course.
I am not sure if there is additional mapping somewhere, but everything else works well (breakpoints, other variable inspections...)
maybe the default imports can be transpiled as
const a = require("./filea").default; console.log(a);
The text was updated successfully, but these errors were encountered:
Same.
I can't get any intelligence when hover on createServer
createServer
Sorry, something went wrong.
No branches or pull requests
TypeScript Version: 3.7.5
VSCode Version: 1.41.1 2019-12-18
Search Terms:
VSCode TypeScript Default Import Renamed Can't Debug Watch Inspect
Code
filea.ts
fileb.ts
tsconfig.json
Expected behavior:
Works correctly in runtime
Variable a (imported one) can be inspected
Actual behavior:
Works correctly in runtime
Variable a (imported one) can't be inspected neither watched as VS Code says: not available
The problem is the variable a does not exist at runtime as the import is transpiled as:
Watching of filea_1.default works correctly, of course.
I am not sure if there is additional mapping somewhere, but everything else works well (breakpoints, other variable inspections...)
maybe the default imports can be transpiled as
The text was updated successfully, but these errors were encountered: