Skip to content

Next.js Turbopack Support #8105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #85531
ryanolson-aumni opened this issue May 11, 2023 · 60 comments
Open
Tracked by #85531

Next.js Turbopack Support #8105

ryanolson-aumni opened this issue May 11, 2023 · 60 comments

Comments

@ryanolson-aumni
Copy link

ryanolson-aumni commented May 11, 2023

⚠️ This original post has been edited by @lforst to reflect the current status of Turbopack Support ⚠️

Important

This issue is tracking progress on Turbopack Support. If you find bugs or problems with the Sentry SDK in combination with Turbopack please open a separate issue. Thank you!

Problem Statement

Sentry should work in combination with Turbopack with all of its features.

Current Status (Last Update May 5, 2025)

Feature Support Notes
Next.js app compiles and runs without issues
Server-side instrumentation
Client-side instrumentation - Upgrade to SDK version 9.9.0 or greater
- Upgrade to Next.js canary 15.3.0-canary.8 or greater
- Add instrumentation-client.ts file with Sentry.init() call. (sentry.client.config.ts can be replaced with instrumentation-client.ts. It serves the same purpose.)
Release Injection - Upgrade SDK to version 9.11.0
Source Maps - Needs runAfterProductionCompile hook implemented in Next.js (done in Next.js 15.4.0-canary.19)
- Needs way to inject debug IDs into bundles implemented in Next.js
React Component Name Annotations - Needs way to transform code in Next.js
- Will likely not be possible for the forseeable future
@smeubank

This comment has been minimized.

@mdugue

This comment has been minimized.

@lforst

This comment has been minimized.

@smeubank

This comment has been minimized.

@lforst

This comment has been minimized.

@Stanzilla

This comment has been minimized.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Dec 14, 2023
@lforst

This comment has been minimized.

@leerob
Copy link

leerob commented Feb 10, 2024

It's also worth noting that the initial Turbopack support is for next dev, which is only for your local environment. next build support will come later 🙏

@coderrshyam
Copy link

@lforst Why depended on further next.js releases work now and make it compatitable turbopack with sentry at least in dev mode next dev --turbopack

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Apr 14, 2025
@lforst
Copy link
Member

lforst commented Apr 15, 2025

@coderrshyam I don't fully understand what you are saying but the SDK is already compatible with next dev --turbopack. The only thing that is missing is sourcemaps for next build --tubropack.

@coderrshyam

This comment has been minimized.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Apr 15, 2025
@lforst

This comment has been minimized.

@lforst

This comment has been minimized.

@stephanie-anderson stephanie-anderson removed the Package: nextjs Issues related to the Sentry Nextjs SDK label Apr 16, 2025
@l0g1x
Copy link

l0g1x commented May 1, 2025

Is there an ETA on source maps support?

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 May 1, 2025
@chargome
Copy link
Member

chargome commented May 2, 2025

@l0g1x you can follow the progress for this here (also linked in the description).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests