-
-
Notifications
You must be signed in to change notification settings - Fork 447
vue-tsc
v2.2.8 cases type error after emitting declaration files
#5232
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
Comments
Also, causing this - qmhc/vite-plugin-dts#416 If you do per-file compilation - language-tools/packages/language-core/lib/codegen/globalTypes.ts Lines 138 to 140 in 9b6911a
|
@brc-dd do you mean that we only need to solve the errors in these few lines? It seems that we forgot to add generic constraints. |
No that's separate.
These types are not being injected in dts in the stackblitz example the author shared above. They are injected if you run vue-tsc for single file. But if you run for whole project they are not injected. |
Clear. |
@brc-dd Can you open a new issue for your situation? |
Uh oh!
There was an error while loading. Please reload this page.
Vue - Official extension or vue-tsc version
^2.2.8
VSCode version
none
Vue version
^3.5.13
TypeScript version
~5.7.3
System Info
package.json dependencies
Steps to reproduce
Run
pnpm run tsc
then check./dist/App.vue.d.ts
.What is expected?
No type error in
./dist/App.vue.d.ts
.What is actually happening?
Many
__VLS_Xxxx
types case error.Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-oc7njgdm?file=package.json&view=editor
Any additional comments?
Might be this commit imported the issue.
The text was updated successfully, but these errors were encountered: