⚠️ 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 |
Problem Statement
Sentry should work in combination with Turbopack with all of its features.
Current Status (Last Update May 5, 2025)
9.9.0or greater- Upgrade to Next.js canary
15.3.0-canary.8or greater- Add
instrumentation-client.tsfile withSentry.init()call. (sentry.client.config.tscan be replaced withinstrumentation-client.ts. It serves the same purpose.)9.11.0runAfterProductionCompilehook implemented in Next.js (done in Next.js15.4.0-canary.19)- Needs way to inject debug IDs into bundles implemented in Next.js
- Will likely not be possible for the forseeable future