Generating sourcemaps in production fails with no error #9109
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
type: bug/fix
Versions
Repro steps
ng serve
orng build
; app runs and builds fine.ng build --prod
and get error.ng build --prod --sourcemaps
and build fails silently.Observed behavior
I'm running into the bug that I've seen mentioned elsewhere (#7509), where building in production mode fails at the Uglify step with this error:
That it's happening in the main bundle makes me think it's my code, so I was trying to enable sourcemaps to track it down, as recommended here. However, when I enable sourcemaps, the build just quietly fails with no error message, but also no dist directory. 😭 Even with the --verbose flag, I don't see anything particularly useful -- it just gets up to 92% chunk asset optimization and then dies. (The process even exits with a 0 code!)
Desired behavior
I'd like to be able to generate sourcemaps to see where the problem is being introduced, or at least see an error message as they fail.
The text was updated successfully, but these errors were encountered: