After 6 hours of continuous builds & experimenting I finally got minified/production builds to de-symbolicate on sentry. Phew.
But, it’s still showing this error even though the test crash/issue comes out correctly (shows typescript & correct line etc):
I have tried the extensive list of troubleshooting steps here: Troubleshooting Source Maps for JavaScript | Sentry Documentation . When i run the script to check my sourcemap, and put in the same column/row as the error, it says
{
source: 'webpack://subkit/libs/backend/app/src/lib/app.controller.ts',
line: 84,
column: 42,
name: null
}
… which is correct.
The 82/9 in the error is from one stackframe higher - that one shows
{ source: null, line: null, column: null, name: null }
The sourcemap is being uploaded by this GitHub action:
- name: Create Sentry release
uses: getsentry/action-release@v1
id: create_sentry_release
if: steps.api_affected.outputs.api_affected == 'true'
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_API_AUTH_TOKEN }}
SENTRY_ORG: subkit
SENTRY_PROJECT: api-test
with:
environment: production
sourcemaps: ${{ steps.find_sourcemaps.outputs.sourcemaps }}
version: ${{ steps.tag_version.outputs.new_tag }}
url_prefix: /usr/local/app
We’re running NestJS built by NX, from TypeScript. All help appreciated…
Edit: I see the GHA shows a warning when uploading … but given that the mapping / de-minifying works fine, I guess it is not related to the error?
> Found 1 release file
> Analyzing 1 sources
> Rewriting sources
> Found 1 release file
> Analyzing 1 sources
> Adding source map references
> Rewriting sources
> Adding source map references
> Bundled 1 file for upload
> Bundled 1 file for upload
> Uploaded release files to Sentry
> File upload complete (processing pending on server)
Source Map Upload Report
Minified Scripts
/usr/local/app/main.js (sourcemap at main.js.map)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for /usr/local/app/main.js.)
> Uploaded release files to Sentry
> File upload complete (processing pending on server)
Source Map Upload Report
Source Maps
/usr/local/app/main.js.map