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
The logger output includes a stack trace with minified and bundled files, making it difficult to understand where the error occurred. Here is an example:
<!-- UbiquityOS - async - 2074e5f5-cd87-4325-a261-b26f990910d3 - @Developer-Harshit - https://dash.cloudflare.com/17b9dfa79e16b79dffcb11a66768539c/workers/services/view/ubiquity-os-command-start-stop-development/production/observability/logs?granularity=0&time=%7B%22type%22%3A%22absolute%22%2C%22to%22%3A1738774664711%2C%22from%22%3A1738774544711%7D{ "message": "", "name": "AggregateError", "stack": "AggregateError\n at start (index.js:58261:11)\n at async userStartStop (index.js:58484:12)\n at async startStopTask (index.js:58643:14)\n at async Array.<anonymous> (index.js:48626:22)"}-->
To improve readability and easier debugging, the logger should fetch the source map (if it's available) and transform the stack so the file names and line numbers will match to original files.
The are multiple libraries for this like source-map-support, source-map...but research needs to be done on which one is suitable for this use case
Currently, Actions plugins get bundled by ncc into a single file index.js and a source map index.js.map so that can be used, but Workers plugins get bundled by wrangler automatically so that should be disabled and it should use our ncc build.
The text was updated successfully, but these errors were encountered:
The logger output includes a stack trace with minified and bundled files, making it difficult to understand where the error occurred. Here is an example:
To improve readability and easier debugging, the logger should fetch the source map (if it's available) and transform the stack so the file names and line numbers will match to original files.
The are multiple libraries for this like source-map-support, source-map...but research needs to be done on which one is suitable for this use case
Currently, Actions plugins get bundled by
ncc
into a single fileindex.js
and a source mapindex.js.map
so that can be used, but Workers plugins get bundled bywrangler
automatically so that should be disabled and it should use ourncc
build.The text was updated successfully, but these errors were encountered: