Next.js Discord

Discord Forum

Debugging Server Chunks

Unanswered
Black carp posted this in #help-forum
Open in Discord
Avatar
Black carpOP
I got this error on my production build of Next 15, it doesn't happen on next dev

⨯ TypeError: s is not a function
  at <unknown> (/app/.next/server/chunks/6095.js:4:2731796)
  at new K (/app/.next/server/chunks/6095.js:4:2733145)
  at t.createWindow (/app/.next/server/chunks/6095.js:4:2731449)
  at new E (/app/.next/server/chunks/6095.js:4:2727325)
  at t.jsdomAdaptor (/app/.next/server/chunks/6095.js:4:76853)
  at 75083 (/app/.next/server/chunks/6095.js:870:535383)
  at t (/app/.next/server/webpack-runtime.js:1:128)
  at 81058 (/app/.next/server/chunks/6828.js:1:14948)
  at t (/app/.next/server/webpack-runtime.js:1:128)
  at 7739 (/app/.next/server/chunks/1993.js:1:20935) {
 digest: '2217791976'


Is it possible to debug this using sourcemaps?

1 Reply

Avatar
Black carpOP
Seems like the issue is caused by rehype-mathjax.