-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Inconsistent JavaScript Intellisense / not working #30291
Comments
I had a similar problem #30122 my solution is the following {
"compilerOptions": {
"target": "ES6",
"allowSyntheticDefaultImports": true,
"jsx": "react",
"module": "commonjs",
"baseUrl": ".",
"paths": {
"*": [
"*",
"app/*"
]
}
},
"include": [
"app/**/*.js"
]
} the important bits are Hope this helps 😄 |
@zanza00 , thanks zanza, unfortunately the result was the same (I tested quite a few I created a repo with test files to illustrate the issue (with 2 folders with different There was no difference (this time I tested it on Windows 10) |
@mudrz We don't fully support the proposed I believe you also have to use {
"compilerOptions": {
"target": "ES6",
"allowSyntheticDefaultImports": true,
"jsx": "react",
"module": "commonjs",
"baseUrl": ".",
"paths": {
"App/*": [
"./*"
]
}
},
"include": ["**/*.js"]
} |
@mjbvz , nice, thanks, I wasted so much time on this trying different jsconfig combinations, didn't know that the key also needs to use I tested both configurations and can confirm that Intellisense works in this case (-the export from syntax) {
"compilerOptions": {
"target": "es6",
"baseUrl": ".",
"paths": {
"App/*": ["./*"]
}
},
"exclude": ["dist"]
} |
Steps to Reproduce:
What I am trying to do:
I am using webpack aliases and want to utilize VS Code Intellisense for them
webpack.config.js
ClientApp
Folder structurejsconfig.json
Some functions like
deleteProperty
are not recognized if using aliasApp
but are recognized if using relative paths
other functions are recognized (in same folder, completely same format used)
additionally using
index.js
with re-exportsdoes not work even with relative paths (
IOptions.js
has a default export object, recognized only in the last format)import { IOptions } from 'App/models';
import { IOptions as IOptions2 } from './models';
import IOptions3 from 'App/models/IOptions';
import IOptions4 from './models/IOptions';
Are these configuration issues or?
The text was updated successfully, but these errors were encountered: