0👍
state.$nuxt
tries to access a state property named $nuxt
which does not exist (unless you create it yourself). The pinia docs say that $nuxt
is injected into the store, so you should be able to access it via this.$nuxt
.
Source:stackexchange.com