Skip to content

Fixed version of rollup causes package duplication #16971

Closed

Description

@theKashey

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

9.34.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

This is neither a bug, nor an issue.

Just a little problem caused by a particular version of rollup being pinned in the package dependencies

To reproduce a problem one just need to install @sentry/nextjs to an environment (repo or more likely monorepo) already using rollup. Quite likely it will cause package duplication, as latest version is always different. As long as rollup comes with a whole ecosystem, there will be many package duplicated.

Expected Result

@sentry/nextjs to use a "range" - for example "rollup": "^4.35.0", so it can "sync" and dedupe with potentially existing other version.

Actual Result

Both "rollup": "4.35.0"(sentry) and "rollup": "4.45.0"(current) will be pulled into a repo.

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 14, 2025
  2. Lms24 commented on Jul 15, 2025

    @Lms24
    Member

    Hey @theKashey thanks for writing in! To clarify: Is this causing any problem for you or is the primary concern node_modules size increase (which is valid of course! just trying to assess priority)?

    I think we can change it to ^4.35.0, though this doesn't guarantee deduplication for everyone either (i.e. if anyone is using a more narrowly pinned version or a different major version).

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 15, 2025
  4. Lms24 commented on Jul 15, 2025

    @Lms24
    Member

    Opened #17010 -- we'll go with your suggestion for now. Thanks for raising!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions