pinia not found when installed as a plugin #2134
Unanswered
federicomichela
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.
-
I'm setting up a microfrontends architecture with single-spa, vue3 and pinia.
I'm having some issue whereby I'm defining a store in a utiity microapp which gets imported in all other microapps.
In a microapp I'm then creating a pinia as a plugin and setting app.use(piniaPlugin).
Then in the microapp component I'm calling the useExportedStore() but this throws a pinia not found error.
Here some code snippets.
single-spa-utils
single-spa-microapp/main.js
single-spa-microapp/storePlugins.js
single-spa-microapp/component.vue
Beta Was this translation helpful? Give feedback.
All reactions