-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
TS plugin doesn't fully work if using workspace typescript version #169
Comments
Thanks for your repro case! VSCode using built-in TS library by default, and VSCode provide
But I have not released Volar TS plugin to npm so you can't do that yet. 😅 |
Published in 0.25.3: https://www.npmjs.com/package/typescript-vue-plugin |
tsconfig.json added or no add ? which one should i do
|
If I set VSCode to use the workspace version of typescript instead of its own (
> TypeScript: Select TypeScript version...
->Use Workspace Version
) and remove the*.d.ts
file, it shows this error even with Volar TS plugin enabled:Cannot find module './App.vue' or its corresponding type declarations. ts(2307)
The error goes away if I set
> TypeScript: Select TypeScript version...
->Use VS Code's Version
Is this intended?
If you need a repo to test it, I created a clean one here (it's just the @vitejs/create-app vue-ts preset) with the
shims-vue.d.ts
file commented out: https://github.com/ananni13/volar-ts-testThe text was updated successfully, but these errors were encountered: