Module pinia is disabled due to incompatibility issues: - [nuxt] Nuxt version ^2.0.0 || >=3.13.0 is required but currently using 3.12.4 ... I AM USING THE LATEST VERSION OF NUXT #2865
Unanswered
Dapothomas
asked this question in
Help and Questions
Replies: 0 comments
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.
-
import { useUserStore } from '~/stores/user';
export default {
setup() {
const userStore = useUserStore(pinia);
return { userStore };
},
This is how i tried to use the code and i keep getting the same error
[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"? See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help. This will fail in production.
Beta Was this translation helpful? Give feedback.
All reactions