N
Nuxt2y ago
Jure

Error after upgrading Nuxt

I have upgraded Nuxt from 3.0.0 to 3.1.2 with npx nuxi upgrade command. After that I get an error with Vuetify package (version 3.1.2):
[unhandledRejection] Failed to resolve entry for package "vuetify". The package may have incorrect main/module/exports specified in its package.json
[unhandledRejection] Failed to resolve entry for package "vuetify". The package may have incorrect main/module/exports specified in its package.json
Anyone knows what could be the problem?
No description
4 Replies
Fabian B.
Fabian B.2y ago
Hey there. Can you try to downgrade again to a state where it’s working, and then manually upgrade by removing the .nuxt folder and your package-lock file and installing npm I nuxt@latest? I had some issues with the nuxt upgrade command so I always do that manually, helps sometimes
Jure
Jure2y ago
Hi. Thanks for your response. I tried exactly as you suggested and got the same result. https://codesandbox.io/p/github/juretopolak/nuxt3-tailwind-vuetify/nuxt-update?file=%2FREADME.md https://github.com/juretopolak/nuxt3-tailwind-vuetify/commit/4eb36c1fc61387ebe57a333b10cc49190496052a This is my "testing" project, if you see why is updating Nuxt causing issue with Vuetify.
Fabian B.
Fabian B.2y ago
Okay I see, I would suppose this is an issue with vuetify though, or with the way you've integrated it into your projects. I see some similar issues https://github.com/vuetifyjs/vuetify/issues. Don't know if this is something related to nuxt in particular. Anyone want to jump in who has experience using vuetify? @ all
Jure
Jure2y ago
https://github.com/vuetifyjs/vuetify/issues/16593
Seems to be a problem introduced with Vite 4.1.0+, I've bumped back to v4.0.4 and it works fine.
I guess this is also causing me the problem. When upgrading Nuxt to the latest version, it also upgraded its dependency: vite "~3.2.4" > vite "~4.1.1" A Vuetify's core team member just opened an issue about this: https://github.com/vitejs/vite/issues/11947 I guess I'll just have to wait for the bug fix before upgrading Nuxt or what else can I do? 🙂 @Fabian B. thanks for your feedbacks!
Want results from more Discord servers?
Add your server