N
Nuxtβ€’9mo 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 πŸ™‚
4 Replies
Thomas
Thomasβ€’3mo ago
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 :
"overrides": {
"vue": "latest"
}
"overrides": {
"vue": "latest"
}
to the package.json in the app seems to fix the issue
dmarr
dmarrβ€’3mo ago
I 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...
dmarr
dmarrβ€’3mo ago
I guess the description could be more generic and not mention layers
Thomas
Thomasβ€’3mo ago
Great, will keep an eye on it
Want results from more Discord servers?
Add your server