Dapo-Thomas
Module pinia is disabled due to incompatibility issues: - [nuxt] Nuxt version ^2.0.0 || >=3.13.0 is
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.
25 replies