sentry-javascript-bundler-plugins: ng build stuck after successful build since sentryWebpack v2
Since i upgraded from the plugin v1 to v2, my angular build gets stuck after a successfull build:
Build at: 2023-07-07T10:40:52.046Z - Hash: cc2971c88cd12369 - Time: 32093ms
just won’t end the process after this line. When i remove the plugin, the build ends normally. I tried the plugin versions 2.4 2.3 2.0, all unsuccessfull.
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 4
- Comments: 20 (8 by maintainers)
I am contemplating whether we should just remove unplugin entirely. In the beginning, I thought it was a good idea to abstract away all the bundler intricacies but by now many of the injection flows are different anyhow. I believe we’re operating too low-level for unplugin to be effective. It would be a medium refactor but one dependency less.
@rgant Using
"@sentry/webpack-plugin": "^1.21.0"is perfectly fine!The documentation currently says to do what doesn’t work. https://docs.sentry.io/platforms/javascript/guides/angular/sourcemaps/uploading/angular-webpack/
If there isn’t bandwidth to remove unplugin, perhaps there is bandwidth to update the documentation with an alternative setup?
Because otherwise I will continue to use
"@sentry/webpack-plugin": "^1.21.0",until this is resolved.Any updates?
It is unsuitable for us because we use service workers with angular. The service worker works based on the content hash value of artifacts. if we manipulate the files afterwards, they are not matching anymore.
This is the advantage of the webpack plugin.
we use at the moment version 1.x and its fine for us