Nuxt 2 - using a store in a plugin outputs an error in console #1063
Labels
contribution welcome
help wanted
Any external help on this topic is welcomed
🧑💻 pkg:devtools
Related to devtools
⛰ pkg:nuxt
Related to @pinia/nuxt
vue 2.x
Specific to Vue 2 usage
Reproduction
https://github.com/guillaumeduliscouet/example-nuxt-2
It is a fork of the official exemple with only this added as a nuxt plugin:
Steps to reproduce the behavior
Expected behavior
Using a store in a plugin should be possible (right ?) without breaking the devtools
Actual behavior
Everything seems to work in the devtools, but:
"user" store installed
does not appearHere is what I have if I remove the store usage in the plugin:
Additional information
I imagine that the plugin gets called before the Vue app creation ? Seems like pinia is trying to install it's devtools plugin with
app: null
The text was updated successfully, but these errors were encountered: