Open XiongAmao opened 5 years ago
I have the same problems, this is my infomation:
emmmm,so it must be the problems of Vetur ???
By default, Vetur ignores everything under node_modules
.
If you want to use this folder structure, you need to include a jsconfig.json or tsconfig.json that specifies a different exclude
pattern. Read more here: https://code.visualstudio.com/docs/languages/jsconfig
It actually does not ignore files under node_modules
and if the file is under there, TS host treat them plain TS files even if they are .vue
files.
https://github.com/vuejs/vetur/blob/master/server/src/services/typescriptService/serviceHost.ts#L315-L327
By default, Vetur ignores everything under
node_modules
.If you want to use this folder structure, you need to include a jsconfig.json or tsconfig.json that specifies a different
exclude
pattern. Read more here: https://code.visualstudio.com/docs/languages/jsconfig
I set the node_modules files include, and the js script seems normal, but the html template still have errors.
<script lang="js">
// lang="js"
// Error does not appear
</script>
0.22.4 works but 0.22.5 doesn't!
Up ??
Is this problem exist in new version?
Info
Problem
Error display when the .vue file is placed inside node_modules. Maybe the same problem here. #1327 #1388
Reproducible Case
https://github.com/XiongAmao/vetur-error-demo