Pinia 2.2.2 not working with Vue 3.4.38 #2752
-
Reproductionits in install problem Steps to reproduce the bugin a new nuxt project install pinia npm i pinia Expected behaviorexpected pinia to be installed Actual behaviorWhile resolving: nuxt-app@undefined Could not resolve dependency: Conflicting peer dependency: [email protected] Fix the upstream dependency conflict, or retry Additional informationNode.js v20.17.0 my package.json {
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev --host",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxtjs/i18n": "^8.3.3",
"@pinia/nuxt": "^0.5.4",
"@tanstack/vue-table": "^8.19.3",
"@vueuse/core": "^10.11.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-vue-next": "^0.416.0",
"pinia": "^2.2.2",
"radix-vue": "^1.9.2",
"shadcn-nuxt": "^0.10.4",
"tailwind-merge": "^2.4.0",
"tailwindcss-animate": "^1.0.7",
"vaul-vue": "^0.2.0",
"vue": "latest"
},
"devDependencies": {
"@iconify/vue": "^4.1.2",
"@nuxtjs/color-mode": "^3.4.2",
"@nuxtjs/tailwindcss": "^6.12.1",
"@pinia-plugin-persistedstate/nuxt": "^1.2.1",
"nuxt": "^3.13.0",
"typescript": "^5.5.4"
}
}
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I had this problem recently and i slapped the error to chatgpt. it suggested me to specify @vue/composition-api to false in the overrides. Haven't had any errors so far... so that's it 🤷♀️ In packjage.json
|
Beta Was this translation helpful? Give feedback.
-
https://github.com/vuejs/pinia/discussions/2397#discussioncomment-10642772 All I did was
This setup worked perfectly for me! 👌🏽 |
Beta Was this translation helpful? Give feedback.
-
I think the Nuxt project generator gave me |
Beta Was this translation helpful? Give feedback.
I think the Nuxt project generator gave me
"vue": "latest"
in mypackage.json
. Switching this to"vue": "^3.5.10"
fixed the issue for me.