$pinia is not in the context inside a nuxt 2 plugin #2017
Unanswered
TimvdEijnden
asked this question in
Help and Questions
Replies: 2 comments
-
Never mind, I didn't notice this warning: WARN Module pinia is disabled due to incompatibility issues
- [bridge] Nuxt bridge is required |
Beta Was this translation helpful? Give feedback.
0 replies
-
You seem to be using the wrong version of the plugins. See https://pinia.vuejs.org/ssr/nuxt.html#nuxt-2-without-bridge You can check this example for a complete working sample Although the recommended approach would be to use Nuxt bridge so smoothen up the migration to Nuxt 3 😉 . That version would also support a more up to date pinia plugin |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
https://stackblitz.com/edit/nuxt-starter-82eu7r?file=README.md,plugins%2Finit-flag.js,package.json,pages%2Findex.vue,nuxt.config.js
Steps to reproduce the bug
nuxt dev
Expected behavior
$pinia should be in the list of keys
Actual behavior
$pinia is missing in the list of keys.
Additional information
We're moving away from vueX, and there used to be a $store in the context. But now with trying to use Pinia it isn't there.
Beta Was this translation helpful? Give feedback.
All reactions