-
-
Notifications
You must be signed in to change notification settings - Fork 438
error TS2688: Cannot find type definition file for '.vue-global-types/vue_3.5_false.d.ts' #4860
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
|
I have a similar problem, which might be related. In a PNPM monorepo I have one library and an app. The app includes some library files using relative paths, like
I tried to fiddle with vite-plugin-checker's vueTsc root/tsconfigPath options, but couldn't get the file to be generated to repo root node_modules. |
pnpm + monorepo, vue-tsc check
|
My workaround was to not point on the other package via relative path but via node modules mananged by pnpm. So I've replaced: in my TypeScript alias |
in my case, i downgrade the pnpm as follows,
and, when using sometimes, in
|
same problem in pnpm monorepo. Error happens when trying import .vue file in another package. For example, when executing Then we import
|
language-tools/packages/language-core/lib/utils/ts.ts Lines 289 to 300 in 6916e42
viewed source code, seems like it'll put
Anyone got any idea to fix this? |
Is there any workaround before the PR is merged? (btw nice work @depressedX!!!) |
You use use |
Vue - Official extension or vue-tsc version
2.1.6
VSCode version
1.93.1
Vue version
3.5.6
TypeScript version
5.3.3
System Info
System: OS: macOS 15.0 CPU: (10) arm64 Apple M1 Max Memory: 6.98 GB / 64.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.15.1 - /usr/local/bin/node npm: 10.7.0 - /usr/local/bin/npm pnpm: 9.10.0 - /usr/local/bin/pnpm bun: 1.0.13 - ~/.bun/bin/bun Browsers: Brave Browser: 114.1.52.122 Chrome: 128.0.6613.138 Safari: 18.0
package.json dependencies
No response
Steps to reproduce
We're using a PNPM monorepo, each package has it's own type check. We run the these using Turborepo. The issue still happens randomly even type checking individual packages.
We're also using typescript references.
What is expected?
.vue-global-types/vue_3.5_false.d.ts is found
What is actually happening?
.vue-global-types/vue_3.5_false.d.ts is not found
Link to minimal reproduction
No response
Any additional comments?
We've tried adding
directly to the tsconfig's and also tried adding
This didn't seem to help
The text was updated successfully, but these errors were encountered: