Skip to content

jsconfig paths not working for .mjs files #76576

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
iAmServerless opened this issue Jul 4, 2019 · 1 comment
Closed

jsconfig paths not working for .mjs files #76576

iAmServerless opened this issue Jul 4, 2019 · 1 comment
Assignees
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@iAmServerless
Copy link

  • VSCode Version: 1.35.1
  • OS Version: Mac Mojave

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

@vscodebot vscodebot bot assigned mjbvz Jul 4, 2019
@vscodebot vscodebot bot added the javascript JavaScript support issues label Jul 4, 2019
@mjbvz
Copy link
Collaborator

mjbvz commented Jul 8, 2019

Mjs support is tracked upstream by microsoft/TypeScript#27957

@mjbvz mjbvz closed this as completed Jul 8, 2019
@mjbvz mjbvz added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Jul 8, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 22, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants