Skip to content

peerDependencies in unplugin-dts require "@vue/language-core": "~3.1.5" (not allowing e.g. 3.3.3) #481

Description

@sgerke-1L

Describe the bug

I am using unplugin-dts with "@vue/language-core": "3.3.3", but I'm getting a dependency conflict.
The reason is that the peer dependency is specified as

  "peerDependencies": {
    "@vue/language-core": "~3.1.5",

in packages/unplugin-dts/package.json.

I'd have expected that this only restricts to ^3.1.5 or similar, but maybe there is a reason this was locked on 3.1.x?

In any case, allowing 3.x here would be much appreciated.

Reproduction

https://github.com/sgerke-1L/unplugin-dts-repro

Steps to reproduce

Remove "overrides" in the package.json of the source repository and do npm install.

System Info

System:
    OS: Linux 7.0 Ubuntu 26.04 LTS 26.04 LTS (Resolute Raccoon)
    CPU: (14) x64 Intel(R) Core(TM) i7-14700HX
    Memory: 13.97 GB / 20.04 GB
    Container: Yes
    Shell: 5.3.9 - /bin/bash
  Binaries:
    Node: 24.16.0 - /home/s/.nvm/versions/node/v24.16.0/bin/node
    npm: 11.16.0 - /home/s/.nvm/versions/node/v24.16.0/bin/npm
    pnpm: 11.5.3 - /home/s/.nvm/versions/node/v24.16.0/bin/pnpm
  Browsers:
    Chrome: 149.0.7827.102
    Firefox: 151.0.3
    Firefox Developer Edition: 151.0.3
  npmPackages:
    @vitejs/plugin-vue: ^6.0.7 => 6.0.7 
    unplugin-dts: ^1.0.2 => 1.0.2 
    vite: ^8.0.16 => 8.0.16

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions