Steinerd
Steinerd
NNuxt
Created by Dapo-Thomas on 12/27/2024 in #❓・help
Module pinia is disabled due to incompatibility issues: - [nuxt] Nuxt version ^2.0.0 || >=3.13.0 is
I traced the issue. it stemmed from using an auth-guard in a way other then documentation instructed, created a racing condition with Pinia trying to load a store before it had setup its reference.
<script setup lang="ts">

//...
let dbStore: ReturnType<typeof useDbStore>;

let profile: Ref<typeof dbStore.profile>;
let members: Ref<typeof dbStore.members>;

onMounted(async () => {

dbStore = useDbStore();

await dbStore.awaiter();

({ profile, members } = storeToRefs(dbStore));
});

//...
<script setup lang="ts">

//...
let dbStore: ReturnType<typeof useDbStore>;

let profile: Ref<typeof dbStore.profile>;
let members: Ref<typeof dbStore.members>;

onMounted(async () => {

dbStore = useDbStore();

await dbStore.awaiter();

({ profile, members } = storeToRefs(dbStore));
});

//...
This works without issue now. Totally unrelated to OP's original request on this thread.
25 replies
NNuxt
Created by Dapo-Thomas on 12/27/2024 in #❓・help
Module pinia is disabled due to incompatibility issues: - [nuxt] Nuxt version ^2.0.0 || >=3.13.0 is
Kk
25 replies
NNuxt
Created by Dapo-Thomas on 12/27/2024 in #❓・help
Module pinia is disabled due to incompatibility issues: - [nuxt] Nuxt version ^2.0.0 || >=3.13.0 is
nope, something about Nuxt 3.15 breaks its activePinia instance, and I've tried a plugin workaround, but even the useNuxtApp().$pinia is undefined.
25 replies
NNuxt
Created by Dapo-Thomas on 12/27/2024 in #❓・help
Module pinia is disabled due to incompatibility issues: - [nuxt] Nuxt version ^2.0.0 || >=3.13.0 is
going to try the upgrade again with a copy of the code that works, with --no-force
25 replies
NNuxt
Created by Dapo-Thomas on 12/27/2024 in #❓・help
Module pinia is disabled due to incompatibility issues: - [nuxt] Nuxt version ^2.0.0 || >=3.13.0 is
I can confirm that Nuxt was not installed globally. I re-ran npx nuxt upgrade on my project after dropping both my global cache and my project cache; Interestingly it straight up deleted my @pinia/nuxt reference in my package.json file.
25 replies
NNuxt
Created by Dapo-Thomas on 12/27/2024 in #❓・help
Module pinia is disabled due to incompatibility issues: - [nuxt] Nuxt version ^2.0.0 || >=3.13.0 is
Ooooo, let me check
25 replies
NNuxt
Created by Dapo-Thomas on 12/27/2024 in #❓・help
Module pinia is disabled due to incompatibility issues: - [nuxt] Nuxt version ^2.0.0 || >=3.13.0 is

Who required nuxt:

famfam.app > @nuxt/content > @vueuse/nuxt > [email protected]
famfam.app > [email protected]

Who required nuxt:

famfam.app > @nuxt/content > @vueuse/nuxt > [email protected]
famfam.app > [email protected]
25 replies
NNuxt
Created by Dapo-Thomas on 12/27/2024 in #❓・help
Module pinia is disabled due to incompatibility issues: - [nuxt] Nuxt version ^2.0.0 || >=3.13.0 is
No description
25 replies