Cannot read properties of undefined (reading '_s') #2944
Unanswered
ghost
asked this question in
Help and Questions
Replies: 1 comment
-
const nuxtApp = getContext('nuxt-app').tryUse() if (nuxtApp) { |
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
pnpm run 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
PentaTea/pinia-class-component#4
nuxt/nuxt#31433
Beta Was this translation helpful? Give feedback.
All reactions