Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fwang36 opened this issue Jul 28, 2023 · 6 comments
Open
Assignees

Comments

@Fwang36
Copy link
Member

Fwang36 commented Jul 28, 2023

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"],

@lforst
Copy link
Member

lforst commented Jul 31, 2023

This seems to be related to #345 which is a downstream issue in the unplugin package: unjs/unplugin#323

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

@lforst lforst self-assigned this Jul 31, 2023
@github-actions
Copy link

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 github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2023
@lforst lforst reopened this Sep 4, 2023
@sebheitzmann
Copy link

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

@lforst
Copy link
Member

lforst commented Apr 24, 2024

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

@jobejas
Copy link

jobejas commented Jul 3, 2024

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

@lforst
Copy link
Member

lforst commented Jul 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Status: No status
Development

No branches or pull requests

4 participants