vuejs / pinia

๐Ÿ Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
https://pinia.vuejs.org
MIT License
12.93k stars 1.02k forks source link

Cannot find module 'pinia/dist/pinia.mjs' #2720

Closed suityou01 closed 1 month ago

suityou01 commented 1 month ago

Reproduction

Reproduction

Steps to reproduce the bug

Install nuxt Install pinia using the instructions on https://pinia.vuejs.org/ssr/nuxt.html Try to start nuxt Get error ERROR Cannot start nuxt: Cannot find module 'pinia/dist/pinia.mjs'

Expected behavior

Nuxt starts

Actual behavior

Nuxt doesn't start

Additional information

No response

Janmuixi commented 1 month ago

I couldn't reproduce the error, I followed these steps:

ยท npx nuxi@latest init ยท added the following on package.json "overrides": { "vue": "latest" } ยท npm install pinia @pinia/nuxt ยท npm run dev