-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
fix(language-core): refer absolute path of global types file #4924
Conversation
vue-component-meta
vue-component-type-helpers
@vue/language-core
@vue/language-plugin-pug
@vue/language-server
vue-tsc
@vue/language-service
@vue/typescript-plugin
commit: |
@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 |
.vue-global-types/vue_3.4_false.d.ts
in monorepo, causing vue-tsc
error
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.
|
Could you provide more details to reproduce your error? |
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 #4860
Check the detail info here
#4860 (comment)
Solution
Change globalTypes reference to absolute path:
before:
/// <reference types=".vue-global-types/vue_3.4_false.d.ts" />
after:
/// <reference types="/absolute/path/to/.vue-global-types/vue_3.4_false.d.ts" />