-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
error TS2688: Cannot find type definition file for '.vue-global-types/vue_3.5_false.d.ts' #4963
Comments
Does the |
Okay, I narrowed down the issue. The path got automatically lowercased which causes the issue to happen only if the project path contains uppercase letters.
|
Did you mean What is the typescript version in your node_modules? Will upgrading to the latest version solve the problem? |
@Mivik can you help us remotely investigate this issue? https://github.com/vuejs/language-tools/wiki/Help-Us-Investigate-Issues-Remotely |
Yes the path exists and it's converted to lowercase during type checking Typescript version is 5.4.5. BTW I think probably check #4924 since using absolute path for global types fixes a specific issue and switching back to relative path might break that promise. |
This is due to the issue of inconsistent path resolving behavior caused by older versions of Typescript, which can result in incorrect lowercase path name in case sensitive systems. |
So the solution is...? |
The fix has been released. |
Vue - Official extension or vue-tsc version
2.1.8
VSCode version
1.94.2
Vue version
3.5.12
TypeScript version
5.4.5
System Info
System: OS: Linux 6.11 Arch Linux CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H Memory: 22.45 GB / 31.04 GB Container: Yes Shell: 5.9 - /usr/bin/zsh Binaries: Node: 20.18.0 - /usr/bin/node Yarn: 1.22.22 - /usr/bin/yarn npm: 10.9.0 - /usr/bin/npm bun: 1.1.33 - ~/.bun/bin/bun
package.json dependencies
Steps to reproduce
Use vue-tsc 2.1.8 and
type-check
the projectWhat is expected?
type-check
should run without errorsWhat is actually happening?
type-check
failed withSee #4924 (comment)
Link to minimal reproduction
https://github.com/Mivik/vue-lang-tool-reproduce
Any additional comments?
This issue was said to be fixed in #4924, however this PR introduced the very same problem for me. Using vue-tsc 2.1.6 does not yield this error.
The text was updated successfully, but these errors were encountered: