Description
Environment
"@nx/angular": "20.2.1",
"@sentry/angular": "^9.1.0",
"@sentry/esbuild-plugin": "^3.1.2",
Steps to Reproduce
Follow the steps outlined in https://docs.sentry.io/platforms/javascript/guides/angular/sourcemaps/uploading/angular-nx/#esbuild to create sourcemaps and add the sentry esbuilder plugin.
Expected Result
When running "nx build" I would expect to see the created sourcemaps in the dist folder and have the sentry plugin inject the debugid info and upload them.
Actual Result
Sentry is reporting that it is unable to determin the debug ID from bundle for all .js files:
[sentry-esbuild-plugin] Debug: Could not determine debug ID from bundle. This can happen if you did not clean your output folder before installing the Sentry plugin. File will not be source mapped: C:\Users\test\git\flx-frontends\dist\apps\minion\chunk-2GFO5HFA.js
[sentry-esbuild-plugin] Debug: Could not determine debug ID from bundle. This can happen if you did not clean your output folder before installing the Sentry plugin. File will not be source mapped: C:\Users\test\git\flx-frontends\dist\apps\minion\chunk-2ZZLQINV.js
[sentry-esbuild-plugin] Debug: Could not determine debug ID from bundle. This can happen if you did not clean your output folder before installing the Sentry plugin. File will not be source mapped: C:\Users\test\git\flx-frontends\dist\apps\minion\chunk-2ZWFIBM2.js
[sentry-esbuild-plugin] Debug: Could not determine debug ID from bundle. This can happen if you did not clean your output folder before installing the Sentry plugin. File will not be source mapped: C:\Users\test\git\flx-frontends\dist\apps\minion\chunk-2QEHJE7V.js
[...]
> Found 0 files
> Adding source map references
> Nothing to upload
[sentry-esbuild-plugin] Info: Successfully uploaded source maps to Sentry
[sentry-esbuild-plugin] Debug: Waiting for dependencies on generated files to be freed before deleting...
[...]
[sentry-esbuild-plugin] Debug: Deleting asset after upload: C:\Users\test\git\flx-frontends\dist\apps\minion\chunk-ZZZJIK6M.js.map
[sentry-esbuild-plugin] Debug: Deleting asset after upload: C:\Users\test\git\flx-frontends\dist\apps\minion\chunk-ZZ63UKAS.js.map
[sentry-esbuild-plugin] Debug: Deleting asset after upload: C:\Users\test\git\flx-frontends\dist\apps\minion\chunk-ZTBPWOLP.js.map
When I remove the sentry plugin and only run nx build to create the application and then sentry-cli sourcemaps inject --org xxxxx --project test ./dist
it works fine. So something seems to be broken with the combination of nx/esbuild-plugin
Metadata
Metadata
Assignees
Labels
Type
Projects
Status