jsconfig paths not working for .mjs files #76576
Labels
javascript
JavaScript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Steps to Reproduce:
JS config file
{
"compilerOptions": {
"target": "es6",
"allowSyntheticDefaultImports": false,
"baseUrl": ".",
"paths": {
"config": ["./config/"],
"client/": ["./src/client/"],
"server/": ["./src/server/"],
"shared/": ["./src/shared/"],
"mtpd/": ["./mtpd/*"]
}
},
"exclude": ["node_modules", "dist"]
}
Create two files.
./src/shared/sum.mjs
export function sum(a,b) {
return a+b;
}
./src/shared/app.mjs
import {sum} from 'shared/sum.mjs'
sum(2,3);
on click of sum ide scrolls to the import statement.
Works as expected for .js files.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: