Replies: 3 comments 3 replies
-
Take a look at this example from the rollbar-sourcemap-webpack-plugin repo. I use that plugin with Next to upload sourcemaps to Rollbar with meaningful errors pointing to actual code from my source files. |
Beta Was this translation helpful? Give feedback.
-
Likely unrelated, but I had _next/ static chunk errors that I tracked down to needing to remove a final slash from my nginx proxy_pass. |
Beta Was this translation helpful? Give feedback.
-
For future googlers, there is now a built-in option: https://nextjs.org/docs/pages/api-reference/next-config-js/productionBrowserSourceMaps |
Beta Was this translation helpful? Give feedback.
-
Is there a way to generate sourcemaps for files under
/_next/static/chunks/*
?I'm receiving errors like this in rollbar:
I have followed some instructions and have most source maps uploading to rollbar correctly like so:
However the ones under
_next/static/chunks/
do not seem to be generated or uploaded to rollbar (yellow in screenshot error in rollbar, unable to find matching sourcemap for reported error)?I found this discussion which mentioned
static/chunks
but unsure if that's related to my issue here: #7579Cheers
Beta Was this translation helpful? Give feedback.
All reactions