NuxtN
Nuxtβ€’2y ago
Mathis

Module & Pinia

Hi πŸ™‚ I'm currently creating a module for my company.

I've installed @pinia/nuxt & pinia in it.
I've also added "overrides": { "vue": "latest" } into my
package.json


However, when I'm running my Nuxt projects with my module installed, I've to manually install pinia (npm i pinia --force), otherwise Nuxt refuse to start.
Cannot restart nuxt: Cannot find module 'pinia/dist/pinia.mjs'

How could I solve this ? Thanks πŸ™‚
Was this page helpful?