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 using route groups in NEXT.js, and submitting an error using @bugsnag/jsnotify method, stacktrace is incorrectly parsed (all parentheses are removed).
For example: file URL https://APP_URL/_next/static/chunks/app/(app)/layout-65e9281b65d94580.js is converted to https://APP_URL/_next/static/chunks/app/app/layout-65e9281b65d94580.js. This makes Bugsnag unable to find a matching uploaded source map.
This problem is caused by error-stack-parser library used for javascript error stacktrace parsing. There is a 2-year-old opened issue with a proposed solution stacktracejs/error-stack-parser#62, but evidently, no one maintains the repo nowadays.
We have raised this with our engineers, who have added an item to their backlog to implement a fix for this. While we can’t give an ETA for when this will be implemented, we will be sure to let you know here of any updates.
Is this project dead? We're switching to another tool since Bugsnag seems to be overlooking our issues. We aren't using any obscure frameworks for front-end development; we're working with the most widely adopted one
Describe the bug
When using route groups in NEXT.js, and submitting an error using
@bugsnag/js
notify
method, stacktrace is incorrectly parsed (all parentheses are removed).For example: file URL
https://APP_URL/_next/static/chunks/app/(app)/layout-65e9281b65d94580.js
is converted tohttps://APP_URL/_next/static/chunks/app/app/layout-65e9281b65d94580.js
. This makes Bugsnag unable to find a matching uploaded source map.This problem is caused by
error-stack-parser
library used for javascript error stacktrace parsing. There is a 2-year-old opened issue with a proposed solution stacktracejs/error-stack-parser#62, but evidently, no one maintains the repo nowadays.Context
Here parentheses are removed in the
error-stack-parser
library: https://github.com/stacktracejs/error-stack-parser/blob/master/error-stack-parser.js#L47Here is the PR that should solve it but no one merges it: stacktracejs/error-stack-parser#82
Here it is used in Bugsnag repository: https://github.com/bugsnag/bugsnag-js/blob/next/packages/core/event.js#L221
Proposed solution
As it is a core feature, it might make sense to fork the library and fix the issue.
The text was updated successfully, but these errors were encountered: