-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Allow analyzing Vue files in node_modules
#1127
Comments
So you are including
I turned off If you do include
Then you can stop ignoring these vue files selectively in the service host. Are you interested in doing a PR? |
@octref ran into this issue on Tracked it here, in the current code: vetur/server/src/services/typescriptService/util.ts Lines 8 to 14 in 5f9974f
Paths are not ignored, added to tsconfig like so:
And debugging reveals that the typescript never checks for "Foo.vue" and rather attempts all variants (including "Foor.vue.ts"). Adding the files to Removing the
|
Info
Problem
This is more of a feature request. I'm currently working on a Vue/TypeScript project in which we are sharing an shared, uncompiled "source" package between different projects. Currently Vetur appears to avoid analyzing anything in a
node_modules
path causing the imported type to fall back on the generic shim interface definition.I have removed
node_modules
check from here in my extension locally and confirmed the imported type is resolved correctly:vetur/server/src/modes/script/serviceHost.ts
Line 219 in 73a0854
I would like to have the option to include packages in
node_modules
for analysis. For TypeScript's part I simply need to add the package to theincludes
section oftsconfig.json
and it will work. Perhaps the option to trust the TypeScript includes would suffice?The text was updated successfully, but these errors were encountered: