N
Nuxtβ€’5mo ago
Josh Deltener

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
Thr0nSK
Thr0nSKβ€’5mo ago
I'm only using @pinia/nuxt
Josh Deltener
Josh DeltenerOPβ€’5mo ago
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.
Thr0nSK
Thr0nSKβ€’5mo ago
the "docs" on the nuxt website shows only @pinia/nuxt πŸ˜„ https://nuxt.com/modules/pinia#installation
manniL
manniLβ€’5mo ago
PR welcome πŸ˜„ (to pinia i'd suppose, I'd only install the module)
Want results from more Discord servers?
Add your server