Skip to content

Cannot find module '@rollup/rollup-darwin-arm64' #17062

Closed as not planned
Closed as not planned

Description

@bnteau

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.29.0

Framework Version

Next 14.2.12

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

Upgraded from @sentry/nextjs v7 to v9. The package includes rollup as a dependency, which have some optional dependencies too, and it seems like @rollup/rollup-darwin-arm64 doesn't work well with Apple Silicon.

Tried with 9.29.0 and with the last one, 9.40.0. We only have the issue on local environnements using Apple machines.

=== SYSTEM ===
Darwin Macmini.lan 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:48:46 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8103 arm64

=== ARCHITECTURE ===
arm64

=== NODE VERSION ===
v18.18.2

=== NPM VERSION ===
10.8.2

=== PROCESSOR ===
Apple M1

Note: We’ve temporarily fixed the issue by adding @rollup/rollup-darwin-arm64 as an optionalDependency in our package.json, and running npm install --include=optional to work around the problem.

Expected Result

We expect npm ci to correctly install all dependencies and for the local server to start without errors.

Actual Result

Currently, we’re getting a 500 error related to @rollup/rollup-darwin-arm64@4.35.0, which prevents the app from running locally.

Image

Activity

  1. linear commented on Jul 17, 2025

    @linear
  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 17, 2025
  3. Lms24 commented on Jul 17, 2025

    @Lms24
    Member

    Hi, just to rule out a weird local state, have you tried removing node_modules and installing dependencies fresh? Looks like this helped in a similar report (sveltejs/language-tools#2278).

    The other change we did with NextJS and rollup recently was #17010 which went out with 9.39.0. This now also allows for newer rollup versions to be installed so this could contribute to the problem. I already see one upvote to this issue, so I'm wondering if more people are affected by this problem

  4. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 17, 2025
  5. moved this to Waiting for: Community in GitHub Issues with 👀 3on Jul 30, 2025
  6. getsantry commented on Aug 21, 2025

    @getsantry

    This issue has gone three weeks without activity. In another week, I will close it.

    But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


    "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

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