Commit 5ce4435
authored
fix(nextjs): Don't use chalk in turbopack config file (#17806)
We don't know yet why but this config code seems to be evaluated once at
runtime for some users when using turbopack. The chalk import breaks
with `Failed to load external module @sentry/nextjs: Error
[ERR_REQUIRE_ESM]`.
Just getting rid of this import for now to not break apps.
We're still investigating together with Vercel why this this code gets
pulled in.
closes #176911 parent 22f8e5a commit 5ce4435
File tree
1 file changed
+1
-4
lines changed- packages/nextjs/src/config/turbopack
1 file changed
+1
-4
lines changedLines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
0 commit comments