What's the right way to install Pinia?
The docs say to install
pinia @pinia/nuxt
, but @pinia/nuxt
already has pinia
as a dep.. (and we've been just using that for months)
https://github.com/vuejs/pinia/blob/v2/packages/nuxt/package.json#L50
We're moving from yarn
to npm
and just noticed this diff. So are the install docs outdated, or is there another reason we're supposed to install pinia
by itself along with @pinia/nuxt
?4 Replies
I'm only using
@pinia/nuxt
Me too, but the install docs say to install
pinia
too (https://pinia.vuejs.org/ssr/nuxt.html#Nuxt-js) .. I would have thought when I first installed this about a year ago I would have followed the docs back then.. shrug.the "docs" on the nuxt website shows only
@pinia/nuxt
π https://nuxt.com/modules/pinia#installationPR welcome π
(to pinia i'd suppose, I'd only install the module)