Skip to content

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

@bnteau

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/[email protected], which prevents the app from running locally.

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions