typescript `6.0.3` dependency issue

Open
#2,022 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
node.js, typescript

Research direction

Start with the linked Node.JSRestAPI reproduction and run npm install using the reported Rollup, @rollup/plugin-typescript, rollup-plugin-dts, TypeScript, and Node versions. Check the peer-dependency requirements shown in the npm error and the related rollup-plugin-dts issue. Done means the dependency conflict is reproduced and either resolved or documented with a confirmed compatible setup.

Written by the indexing model from the issue text.

Description

  • Rollup Plugin Name: @rollup/plugin-typescript
  • Rollup Plugin Version: 12.3.0
  • Rollup Version: 4.60.4
  • Operating System (or Browser): Ubuntu 26.04
  • Node Version: v26.7.0
  • Link to reproduction (⚠️ read below): https://github.com/khteh/Node.JSRestAPI
Expected Behavior
Actual Behavior

node v26.7.0

    "rollup": "^4.60.4",
    "rollup-plugin-dts": "^6.4.1",
    "@rollup/plugin-json": "^6.1.0",
    "@rollup/plugin-typescript": "^12.3.0",
npm error While resolving: rollup-plugin-dts@6.3.0
npm error Found: typescript@6.0.3
npm error node_modules/typescript
npm error   dev typescript@"^6.0.3" from the root project
npm error   peer typescript@">=3.7.0" from @rollup/plugin-typescript@12.3.0
npm error   node_modules/@rollup/plugin-typescript
npm error     dev @rollup/plugin-typescript@"^12.3.0" from infrastructure@2.0.0
npm error     src/infrastructure
npm error       infrastructure@2.0.0
npm error       node_modules/infrastructure
npm error         workspace src/infrastructure from the root project
npm error     dev @rollup/plugin-typescript@"^12.3.0" from webapi@2.0.0
npm error     src/webapi
npm error       webapi@2.0.0
npm error       node_modules/webapi
npm error         workspace src/webapi from the root project
npm error     1 more (webapi.core)
npm error   10 more (ts-node, infrastructure, webapi, webapi.core, ...)
npm error
npm error Could not resolve dependency:
npm error peer typescript@"^4.5 || ^5.0" from rollup-plugin-dts@6.3.0
npm error node_modules/rollup-plugin-dts
npm error
npm error Conflicting peer dependency: typescript@5.9.3
npm error node_modules/typescript
npm error   peer typescript@"^4.5 || ^5.0" from rollup-plugin-dts@6.3.0
npm error   node_modules/rollup-plugin-dts
Additional Information

https://github.com/Swatinem/rollup-plugin-dts/issues/385

Dominant language
JavaScript
Stars
3.8k
Forks
635
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rollup/plugins

All issues in rollup/plugins

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.