NuxtN
Nuxtβ€’2y ago
Arcra

Setup plugin after pinia

I made a plugin that loads a vue plugin that defines a pinia store, but it gives me
[🍍]: "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.

How do I make the plugin loaded after pinia instance is set up?
Was this page helpful?