nuxt-modules / device

Nuxt module for detecting device type.
MIT License
931 stars 51 forks source link

Issues with peer dependencies found #226

Closed 9mm closed 1 month ago

9mm commented 1 month ago

I'm getting this error with pnpm any time I update. Is there already some open upstream issue for this that I'm not seeing?

ℹ Using Tailwind CSS from ~/assets/css/tailwind.css                                                                                                             nuxt:tailwindcss 5:58:19 AM
ℹ Using zod with vee-validate                                                                                                                                                    5:58:19 AM
ℹ Nuxt Icon server bundle mode is set to local                                                                                                                                   5:58:20 AM
ℹ Running with compatibility version 4                                                                                                                                           5:58:20 AM
✔ Types generated in .nuxt                                                                                                                                                       5:58:21 AM
 WARN  Issues with peer dependencies found
.
└─┬ @nuxtjs/device 3.2.2
  └─┬ @nuxt/test-utils 3.14.1
    ├── ✕ unmet peer happy-dom@"^9.10.9 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0": found 15.0.0
    └─┬ vitest-environment-nuxt 1.0.1
      └─┬ @nuxt/test-utils 3.14.1
        ├── ✕ unmet peer happy-dom@"^9.10.9 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0": found 15.0.0
        └─┬ vitest-environment-nuxt 1.0.1
          └─┬ @nuxt/test-utils 3.14.1
            └── ✕ unmet peer happy-dom@"^9.10.9 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0": found 15.0.0
DamianGlowala commented 1 month ago

This is only a warning, you can safely ignore it. Once a new version of @nuxt/test-utils gets released, I will bump dependencies of Nuxt Device and the warning will disappear. See below line in @nuxt/test-utils which already has v15.0.0 included: https://github.com/nuxt/test-utils/blob/3d8955d36d871d953c2e9d5aa77be9f910d320e0/package.json#L106