-
Notifications
You must be signed in to change notification settings - Fork 40
Error with ng build Angular v15.2.0 #359
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
Comments
Hi @nhan-truong255 thanks for writing in! Which version of the I'm not sure if this is related to whatever is causing this issue but is there a special reason why you're only using our plugin for dev builds and not for prod? Generally, our webpack plugin should primarily used for prod builds to upload source maps before you deploy your app to production/staging (or whatever environment you want to get source-mapped errors in Sentry)? Furthermore, I'm wondering if this is related to #345. This bug was tracked down to be caused by one of our dependencies (unplugin - unjs/unplugin#323) |
Hi @Lms24, |
Hi, I'm going to transfer this issue to our bundler plugins repo, as it's related to the webpack plugin. We're aware of it and we have a long term plan to move away from |
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 "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
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 "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
This has been solved by #663 which landed in |
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/angular
SDK Version
7.59.3
Framework Version
Angular v15.2.0, Node v16.13.1 (also tried with Node v18)
Link to Sentry event
No response
SDK Setup
env
Steps to Reproduce
I use custom-webpack with Angular with 3 environments. But currently I'm applying Dev env only
angular.json
custom-webpack.config.dev.js
When I run:


npm start run build-dev
with config in package.json"build-dev": "node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build --configuration=dev"
Sometimes it shows error An unhandled exception occurred: socket hang up
with log detail:
Sometimes it shows error Client network socket disconnected before secure TLS connection was established


with log detail:
Sometimes it builds successfully but it stuck at the last step after building success Build at: 2023-07-21T09:55:15.124Z - Hash: a86f2728c9b24f07 - Time: 57608ms
But when I tried with another plugin, it worked perfectly. Then I back to sentry plugins, it happened again
Expected Result
Build successfully without being stuck and errors
Actual Result
Images above
The text was updated successfully, but these errors were encountered: