-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Next.js Turbopack Support #8105
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It's also worth noting that the initial Turbopack support is for |
When using ⚠ ./node_modules/.pnpm/@sentry+node@9.18.0/node_modules/@sentry/node/build/cjs/sdk
Package import-in-the-middle can't be external.
The request import-in-the-middle matches serverExternalPackages (or the default list).
The package resolves to a different version when requested from the project directory (1.13.1) compared to the package requested from the importing module (1.13.2).
Make sure to install the same version of the package in both locations. However, I don’t have the |
can you try to make sure that you only have one version of this installed - e.g. by removing this from your lockfile, and re-installing? |
Yes! The warning still occurs even after deleting |
@coderrshyam it looks like you are running into the issue described here: https://docs.sentry.io/platforms/javascript/guides/node/troubleshooting/#pnpm-resolving-import-in-the-middle-external-package-errors |
@stijnbe It only occurs when i use |
@coderrshyam other users in this thread suggested updating
Alternatively please refer to https://docs.sentry.io/platforms/javascript/guides/node/troubleshooting/#pnpm-resolving-import-in-the-middle-external-package-errors |
@chargome I think the reason folks are bringing it up here is that it's not clear why this behaviour changes only when turboback is enabled. That is what I see as well. If it was purely a pnpm issue, I would expect it to be consistent between the modes. |
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)
9.9.0
or greater- Upgrade to Next.js canary
15.3.0-canary.8
or greater- Add
instrumentation-client.ts
file withSentry.init()
call. (sentry.client.config.ts
can be replaced withinstrumentation-client.ts
. It serves the same purpose.)9.11.0
runAfterProductionCompile
hook 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
The text was updated successfully, but these errors were encountered: