You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When combining our Next.js auto wrapping of data-fetchers and API routes with webpack 4 the resolving of sourcemaps breaks and errors get resolved to the proxy modules we create.
Steps to reproduce
Create Next.js 10 (has webpack 4 by default) or 11 app (need to set webpack5: false in Next.js config)
Create API route
Throw Error in API route
Look at stack trace in Sentry
Observe that it resolves to the proxy file we generate instead of to the source of the Error