can you make it to register pinia more quickly #2946
Unanswered
ghost
asked this question in
Help and Questions
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
vue class component don't like to wait for it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reproduction
https://github.com/Maakdev/nuxt-pinia-class
Steps to reproduce the bug
bun -b dev
Expected behavior
to work
Actual behavior
I get that when run with pnpm and nuxt 3.16 in dev
[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"
When i run in past with bun (3.15/3.16) i not have that error in dev (work well api cals run from store) but in 3.16 prod it not work (simply not api calls from store using $fetch and no errors in terminal and console)
With pnpm it not work in dev too.
With 3.15 and bun work but i not build project with it.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions