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 π4 Replies
Hi, facing exact ly the same situation
My module bundles vuetify and other npm modules, all of theme are installed when running
npm install
on my app, but pinia wont
adding :
to the package.json in the app seems to fix the issueI have a PR to address this but it has been sitting in the queue for awhile https://github.com/vuejs/pinia/pull/2699
GitHub
feat(nuxt): Support nuxt layers in a better way by marr Β· Pull Requ...
When using the pinia nuxt module with nuxt layers, there were some things that don't appear to work correctly.
I am trying to solve for a nuxt layer workflow, which adds the pinia module an...
I guess the description could be more generic and not mention layers
Great, will keep an eye on it