-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
When import .vue inside .js file it gives module not found in vscode #1322
Comments
You need to add one file. |
Hi @yoyo930021 I have tried by adding |
jsconfig.json content? |
@yoyo930021 here is the {
"include": ["./src/**/*"],
"compilerOptions": {
"module": "es6",
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"checkJs": true
},
"exclude": ["node_modules"]
} |
I think it's a problem. |
Yes exactly, if i |
When use When use The above is my guess. |
Depends on #673, for now you can take a look at https://github.com/HerringtonDarkholme/vue-ts-plugin. |
it just can not recognize and go to the definition the .vue import in .js / .ts |
for me, adding '.vue' extention is the only solution: |
Info
Problem
When
.vue
file is imported from.js
file andcheckJs
istrue
injsconfig.json
file vscode gives error that it can't find module even though.vue
extension is included in the import please check the screenshot.Reproducible Case
Just create new app using vue-cli and in
main.js
try toctrl + click
onApp.vue
import it doesn't take me to theApp.vue
file.The text was updated successfully, but these errors were encountered: