sentry-javascript-bundler-plugins icon indicating copy to clipboard operation
sentry-javascript-bundler-plugins copied to clipboard

Angular with custom webpack settings hangs on build when using .scss

Open Fwang36 opened this issue 1 year ago • 6 comments

Environment

Angular 14.2, but issue exists in Angular 16 as well @angular-builders/custom-webpack 14.1.0 @sentry/webpack-plugin 2.4.0

Steps to Reproduce

Repro provided by user

  1. npm install
  2. npm run build

Expected Result

webpack plugin terminates itself after upload

Actual Result

terminal hangs forever unless force closed -

Screenshot 2023-07-28 at 10 55 21 AM

Changing all instances of scss to css and then running the build solves the issue.

1 . change filename app.component.scss to app.component.css 2. change filename styles.scss to styles.css 3. In app.component.ts, change styleUrls: ['./app.component.scss'] to styleUrls: ['./app.component.css'] 4. In angular.json, change "styles": ["src/styles.scss"], to "styles": ["src/styles.css"],

Fwang36 avatar Jul 28 '23 15:07 Fwang36

This seems to be related to https://github.com/getsentry/sentry-javascript-bundler-plugins/issues/345 which is a downstream issue in the unplugin package: https://github.com/unjs/unplugin/issues/323

The current plan is to move away from unplugin but it will require a fair bit of work.

lforst avatar Jul 31 '23 08:07 lforst

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Aug 22 '23 00:08 github-actions[bot]

+1 . We have the same pb. Any Idea ?

sebheitzmann avatar Apr 24 '24 13:04 sebheitzmann

The recommended workaround for now is to use Sentry CLI instead of the webpack plugin.

lforst avatar Apr 24 '24 14:04 lforst

@lforst is there a way to use thirdPartyErrorFilterIntegration with Sentry CLI instead of webpack?

jobejas avatar Jul 03 '24 00:07 jobejas

@jobejas No there is not but you can use the allowUrls option in Sentry.init() which achieves similar effects.

lforst avatar Jul 04 '24 07:07 lforst

Closing this issue for clean-up. Please re-open if it still applies. Thanks!

AbhiPrasad avatar Nov 01 '24 17:11 AbhiPrasad