Pinia does not initialize in project with inertiajs, vue and adonisjs #1657
-
Pinia does not initialize in project with inertiajs, vue and adonisjs. I tried a few different ways, but inertiajs doesn't activate pinia. And when I try to access the stores, the error is shown in the console stating that the pinia is not yet active. Note: Pinia is installed. I tried in different ways, but I can't understand. And it's been a few days. Any ideas that might help resolve this issue? grateful for the attention. app.js
Home.vue
counter.ts
Error: [🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I managed to resolve. The store file must be js and not ts. Thank you for your attention. |
Beta Was this translation helpful? Give feedback.
I managed to resolve. The store file must be js and not ts. Thank you for your attention.