Open frenicohansen opened 1 week ago
+1
also getting this on the day i decide ot try shadcn-vue, thought i be crazy
This issue drove me insane for hours, I finally sorted it I think. I don't know if this is the "proper" way, but after seeing tons of old outdated Vue 2 answers dealing with shims, I just happened to stumble across this in the config, set it to true
and it works great so far.
@frenicohansen there was some sort of errors with TS v5.5 in vue-tsc which was resolved in v2.0.22, I see that in your reproduction you use vue-tsc v^1 which is EOL, can you update deps (for example with taze), I think this should help you 🙌
Vue-tsc issue: https://github.com/vuejs/language-tools/issues/4487
@frenicohansen there was some sort of errors with TS v5.5 in vue-tsc which was resolved in v2.0.22, I see that in your reproduction you use vue-tsc v^1 which is EOL, can you update deps (for example with taze), I think this should help you 🙌
Vue-tsc issue: vuejs/language-tools#4487
Thanks for the info. Now I think maybe this is not an issue with shadcn-vue anymore, because Nuxt doesn't support vue-tsc 2 yet.
Quoted from https://nuxt.com/docs/guide/concepts/typescript#type-checking
You may experience issues with the latest vue-tsc and vite-plugin-checker, used internally when type checking. For now, you may need to stay on v1 of vue-tsc, and follow these upstream issues for updates: fi3ework/vite-plugin-checker#306 and vuejs/language-tools#3969.
Yes i was wondering this.. there are 1 or 2 very longstanding issues which is broken by vue-tsc v2.
I also notice my volar server broke yesterday, potentially all related 🤔
Man talk about crazy. So many things broke simultaneously it took me hours to sort out what it was.
After so much looking, i see reverting back to TS 5.4 until volar pushes update fixing where it broke, will then allow all these radix errors to go away
Reproduction
https://codesandbox.io/p/devbox/jovial-hertz-ktj475
Describe the bug
The errors show up directly after trying to start the Nuxt.js app
Console's log
System Info
Contributes