NuxtN
Nuxtβ€’12mo agoβ€’
18 replies
meowcat.32

cant install @tanstack/vue-query?

npm i @tanstack/vue-query               :snowflake: shell
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: nuxt-app@undefined
npm error Found: vue@3.5.13
npm error node_modules/vue
npm error   peer vue@">=3" from @iconify/vue@4.3.0
npm error   node_modules/@iconify/vue
npm error     @iconify/vue@"^4.2.0" from @nuxt/icon@1.10.3
npm error     node_modules/@nuxt/icon
npm error       @nuxt/icon@"^1.10.3" from the root project
npm error   peer vue@"^3.3.4" from @nuxt/vite-builder@3.15.4
npm error   node_modules/@nuxt/vite-builder
npm error     @nuxt/vite-builder@"3.15.4" from nuxt@3.15.4
npm error     node_modules/nuxt
npm error       nuxt@"^3.15.4" from the root project
npm error   14 more (@radix-icons/vue, @tanstack/vue-virtual, @unhead/vue, ...)
npm error
npm error Could not resolve dependency:
npm error @tanstack/vue-query@"*" from the root project
npm error
npm error Conflicting peer dependency: vue@2.6.14
npm error node_modules/vue
npm error   peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.2
npm error   node_modules/@vue/composition-api
npm error     peerOptional @vue/composition-api@"^1.1.2" from @tanstack/vue-query@5.66.0
npm error     node_modules/@tanstack/vue-query
npm error       @tanstack/vue-query@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/bea/.npm/_logs/2025-02-13T23_49_48_949Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/bea/.npm/_logs/2025-02-13T23_49_48_949Z-debug-0.log


first time i got a dependency error, can i just ignore it? i think tanstack query uses a outdated version of composition api or something..
Was this page helpful?