-
Notifications
You must be signed in to change notification settings - Fork 334
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
[Bug]: vue-tsc Cannot find module './Button.vue' or its corresponding type declarations. #627
Comments
+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 |
@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
|
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 |
Update to latest packages to solve this issue. |
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
The text was updated successfully, but these errors were encountered: