Cannot read properties of undefined (reading '_s') #2944
Unanswered
ghost
asked this question in
Help and Questions
Replies: 2 comments 2 replies
-
const nuxtApp = getContext('nuxt-app').tryUse() if (nuxtApp) { |
Beta Was this translation helpful? Give feedback.
0 replies
-
@posva could you have a look. the issue is inactive. Steps to reproduce my problem:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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