Closed depressedX closed 4 weeks ago
``` pnpm add https://pkg.pr.new/vuejs/language-tools/vue-component-meta@4924 ```
``` pnpm add https://pkg.pr.new/vuejs/language-tools/vue-component-type-helpers@4924 ```
``` pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-core@4924 ```
``` pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-plugin-pug@4924 ```
``` pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-server@4924 ```
``` pnpm add https://pkg.pr.new/vuejs/language-tools/vue-tsc@4924 ```
``` pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-service@4924 ```
``` pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/typescript-plugin@4924 ```
commit: ccf6506
@KazariEX noticed you've fixed serveral issues about globalTypes. So could you help checking these changes?
Can we centralize the operations of obtaining path and writing data in the same function setupGlobalTypes
?
For me this fix introduced the exact same problem instead of fixing it. Downgrading to vue-tsc 2.1.6 resolves the issue for me.
error TS2688: Cannot find type definition file for '/path/to/project/node_modules/.vue-global-types/vue_3.5_false.d.ts'.
30 /// <reference types="/path/to/project/node_modules/.vue-global-types/vue_3.5_false.d.ts" />
For me this fix introduced the exact same problem instead of fixing it. Downgrading to vue-tsc 2.1.6 resolves the issue for me.
error TS2688: Cannot find type definition file for '/path/to/project/node_modules/.vue-global-types/vue_3.5_false.d.ts'. 30 /// <reference types="/path/to/project/node_modules/.vue-global-types/vue_3.5_false.d.ts" />
Could you provide more details to reproduce your error?
global
Minimal reproducible project: https://github.com/Mivik/vue-lang-tool-reproduce
Hopefully this gets pushed soon. I cannot use GitHub Actions for Ubuntu because of this bug.
fix https://github.com/vuejs/language-tools/issues/4860
Check the detail info here https://github.com/vuejs/language-tools/issues/4860#issuecomment-2406554626
Solution
Change globalTypes reference to absolute path:
before:
after: