Unable to build using --prod flag. Indeterminable error returned during UglifyJs process. #12064
Labels
area: @angular-devkit/build-angular
needs: repro steps
We cannot reproduce the issue with the information given
Milestone
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Node: 8.11.1
Npm: 5.6.0
Angular Cli: 6.1.5
Repro steps
Building with
--prod
, e.g.ng build --prod
returns an error:As per #5741 I attempted to troubleshoot this issue by adding the
--source-map
flag, e.g.ng build --prod --source-map
and the build is successful, with no errors reported. As the output has been Uglified I am unable to find the line number that is being referenced to determine the cause of this problem.Why is it that the build would be successful with the
--source-map
flag added? Is this normal behaviour?The log given by the failure
As above.
Desired functionality
Build should be successful.
Mention any other details that might be useful
Seems to be related to #5741 but I am not sure how identify the problem to resolve this issue.
Any help will be greatly appreciated!
The text was updated successfully, but these errors were encountered: