Using pages directory and Pinia 3.x => build is throwing errors #3018
-
Reproductionhttps://stackblitz.com/edit/nuxt-starter-mpmvrtyh?file=package.json Steps to reproduce the bugHi, I placed the problem 2 weeks ago as a nuxt issue nuxt/nuxt#32655 But until now nothing happened at all, so I try it here as well After trying different settings for a longer time, I was able to identify the problem with a minimal starter. The problem occurs if I use pages directory and Pinia latest version, see the provided example. Everything is working fine, if I stay with Nuxt 3.16 and Pinia 2.3.1. If I use Pinia 3.x and latest Nuxt (3.17.7 or 4.0.0) the build is throwing errors. In developer mode everything is ok. If I preview the build directly in my developer location it's also ok. If I copy the .output folder outside of my project or to a webserver the build crashes. If I should place the bug somewhere else please correct me. Thanks for your help Christoph Expected behaviorShould work Actual behaviorThrowing errors Additional information
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi, I placed this topic as a bug this morning, now it was moved to dicussions. No problem for me, but could someone write more information?
Thanks Christoph |
Beta Was this translation helpful? Give feedback.
-
I get this often and more often than not it's to do with Pinia v3, pinia/nuxt and nuxt. I'm not sure exactly what the issue is, unfortunately, but for every new project I try to update all my dependencies but never can due to some conflict with Pinia. I always keep having to change the version to to get it to work as it's not obvious where the error is coming from. |
Beta Was this translation helpful? Give feedback.
-
Edit Nuxt comfiguration.
|
Beta Was this translation helpful? Give feedback.
Edit Nuxt comfiguration.