vue-sonner icon indicating copy to clipboard operation
vue-sonner copied to clipboard

v2.0.9 can't be installed with floating-vue v5 due to @nuxt/kit v4.0 dependency

Open stevebauman opened this issue 2 months ago • 2 comments

After installing the latest v2.0.9, my build broke because floating-vue requires @nuxt/kit v3.0 and the latest vue-sonner version requires v4.0. Is it possible to fix this somehow?

stevebauman@mac application % npm i
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: @nuxt/[email protected]
npm error node_modules/@nuxt/kit
npm error   @nuxt/kit@"^3.17.6" from @nuxt/[email protected]
npm error   node_modules/@nuxt/devtools
npm error     @nuxt/devtools@"^2.6.2" from [email protected]
npm error     node_modules/nuxt
npm error       peerOptional nuxt@"^4.0.3" from [email protected]
npm error       node_modules/vue-sonner
npm error         dev vue-sonner@"^2.0.9" from the root project
npm error   @nuxt/kit@"^3.17.6" from @nuxt/[email protected]
npm error   node_modules/@nuxt/devtools-kit
npm error     @nuxt/devtools-kit@"2.6.2" from @nuxt/[email protected]
npm error     node_modules/@nuxt/devtools
npm error       @nuxt/devtools@"^2.6.2" from [email protected]
npm error       node_modules/nuxt
npm error         peerOptional nuxt@"^4.0.3" from [email protected]
npm error         node_modules/vue-sonner
npm error   2 more (@nuxt/telemetry, floating-vue)
npm error
npm error Could not resolve dependency:
npm error peerOptional @nuxt/kit@"^4.0.3" from [email protected]
npm error node_modules/vue-sonner
npm error   dev vue-sonner@"^2.0.9" from the root project
npm error
npm error Conflicting peer dependency: @nuxt/[email protected]
npm error node_modules/@nuxt/kit
npm error   peerOptional @nuxt/kit@"^4.0.3" from [email protected]
npm error   node_modules/vue-sonner
npm error     dev vue-sonner@"^2.0.9" 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 /Users/stevebauman/.npm/_logs/2025-10-03T14_28_42_737Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/stevebauman/.npm/_logs/2025-10-03T14_28_42_737Z-debug-0.log
stevebauman@mac application % 

stevebauman avatar Oct 03 '25 14:10 stevebauman

Try downgrade the version to v2.0.8, and lock it.

Wait for the floating-vue dependency to update.

xiaoluoboding avatar Oct 03 '25 14:10 xiaoluoboding

Thanks -- I've downgraded to v2.0.8.

stevebauman avatar Oct 03 '25 15:10 stevebauman