Cannot read properties of undefined (reading '_s') #2944
Replies: 5 comments 2 replies
-
|
const nuxtApp = getContext('nuxt-app').tryUse() if (nuxtApp) { |
Beta Was this translation helpful? Give feedback.
-
|
@posva could you have a look. the issue is inactive. Steps to reproduce my problem:
|
Beta Was this translation helpful? Give feedback.
-
|
I have the same problem |
Beta Was this translation helpful? Give feedback.
-
|
Same issue here, pinia version 2.0.23 |
Beta Was this translation helpful? Give feedback.
-
|
This happens in |
Beta Was this translation helpful? Give feedback.

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