Hebilicious / vue-query-nuxt

A lightweight, 0 config Nuxt Module for Vue Query.
MIT License
87 stars 6 forks source link

Can't install #103

Closed alireza0sfr closed 2 months ago

alireza0sfr commented 2 months ago

Environment

Node: v18.19.1 Nuxt: 3.8.0 / 3.9.0 / 3.12.0 (latest)

Reproduction

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: stocken@undefined npm ERR! Found: vue@3.4.3 npm ERR! node_modules/vue npm ERR! peer vue@"^3.3.4" from @nuxt/vite-builder@3.9.0 npm ERR! node_modules/@nuxt/vite-builder npm ERR! @nuxt/vite-builder@"3.9.0" from nuxt@3.9.0 npm ERR! node_modules/nuxt npm ERR! peer nuxt@"^3.8.2" from @nuxt/devtools@1.0.6 npm ERR! node_modules/@nuxt/devtools npm ERR! peer @nuxt/devtools@"1.0.6" from @nuxt/devtools-ui-kit@1.0.6 npm ERR! node_modules/@nuxt/devtools-ui-kit npm ERR! 2 more (nuxt, the root project) npm ERR! 3 more (@nuxt/devtools-kit, @vueuse/nuxt, the root project) npm ERR! peer vue@"^3.0.0-0 || ^2.6.0" from vue-demi@0.14.6 npm ERR! node_modules/@nuxtjs/i18n/node_modules/vue-demi npm ERR! vue-demi@">=0.13.5 < 1.0.0" from @intlify/vue-router-bridge@1.1.0 npm ERR! node_modules/@nuxtjs/i18n/node_modules/@intlify/vue-router-bridge npm ERR! @intlify/vue-router-bridge@"^1.1.0" from vue-i18n-routing@1.2.0 npm ERR! node_modules/@nuxtjs/i18n/node_modules/vue-i18n-routing npm ERR! vue-i18n-routing@"^1.2.0" from @nuxtjs/i18n@8.0.0 npm ERR! node_modules/@nuxtjs/i18n npm ERR! vue-demi@">=0.13.5 < 1.0.0" from vue-i18n-routing@1.2.0 npm ERR! node_modules/@nuxtjs/i18n/node_modules/vue-i18n-routing npm ERR! vue-i18n-routing@"^1.2.0" from @nuxtjs/i18n@8.0.0 npm ERR! node_modules/@nuxtjs/i18n npm ERR! dev @nuxtjs/i18n@"^8.0.0-rc.5" from the root project npm ERR! 21 more (vue-i18n-routing, vue-demi, @unhead/vue, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! @hebilicious/vue-query-nuxt@"" from the root project npm ERR! npm ERR! Conflicting peer dependency: vue@3.4.38 npm ERR! node_modules/vue npm ERR! peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.2 npm ERR! node_modules/@vue/composition-api npm ERR! peerOptional @vue/composition-api@"^1.1.2" from @tanstack/vue-query@5.51.24 npm ERR! node_modules/@tanstack/vue-query npm ERR! @tanstack/vue-query@"" from the root project npm ERR! 1 more (@hebilicious/vue-query-nuxt) npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Describe the bug

I coudn't install package on three nuxt versions I tried installing with --force flag that you suggested as a workaround to get it fixed on the next updates, but when installed using --force or --legacy-peer-deps I can't use Vuequery object in the my nuxt config and it doesn't work out of the box

Additional context

No response

Logs

No response

alireza0sfr commented 2 months ago

apparently this issue a conflict with @tanstack/vue-query and my dependencies and it's not related to vue-query-nuxt, I can't even install @tanstack/vue-query but migrating to yarn on pnpm will solve this issue