-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
vue-tsc v2.2.0 causes Vue errors #5114
Comments
This has nothing to do with Your errors are:
|
Hi, thanks for your response! I believe 'DataTableHeader/Group' comes directly from Vuetify source code, so I'm not sure it's anything I'm doing. I use Vuetify v3.7.6 and I followed the answer here (https://stackoverflow.com/a/75993081) to help expose the Vuetify table headers (shown below). I created a file named: '@/types/vuetifyTableTypes.d';
Which gets called like:
If that was the culprit, I assume I would get an error message for every vue file that imports the VTableTypes, but I don't. So I'm not sure where to go from here. |
Can you share a minimal reproduction? "noEmit": false,
"outDir": "./dist", I can see the declaration file correctly generated. And I checked vuetify's type declaration file, this type is exported. |
After some trial and error, I think I see what is going on now. Example: Removing the ref (or pointing it to a real one) resolves the issue. Perhaps there can be a single, clearer, error message that the ref doesnt exist or is of wrong type instead of the multiple errors shown in the original ticket? Thanks! |
Vue - Official extension or vue-tsc version
2.2.0
VSCode version
1.96.2
Vue version
3.5.13
TypeScript version
5.7.2
System Info
package.json dependencies
No response
Steps to reproduce
Ever since upgrading from vue-tsc 2.1.10 to 2.2.0 I now get compile errors outside of my code. You can see below multiple errors for the same line of code. Note - That line of code does not exist in my file, so it's referring to the post compiled one. Also the errors below shown 'defineCOmponent', which is not used explicitly in my code and the only appearance of that term is in the vite-env.d.ts file (shown further below)
What is expected?
Not to get the errors shown above upon compile
What is actually happening?
I'm getting the errors shown above
Link to minimal reproduction
No response
Any additional comments?
FWIW I'm using the standard vite-env.d.ts
The text was updated successfully, but these errors were encountered: