Angular-cli: 1.3.0 Prod AOT builds fail

Created on 11 Aug 2017  路  2Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

cli: 1.3.0
node: 6.10.1
npm 5.2.0
@angular 4.2.5
os: CENTOS 7
TSC: 2.4.1

Repro steps.

I'm behind a firewall on a separate network so this is all I have. Not even sure where to start looking to resolve this.
ng build -prod -aot

The log given by the failure.

I'm behind a firewall on a separate network so this is all I have.

ERROR in common.###.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
at .../node_modules/uglifyjs-webpack-plugin/dist/index.js:96:21

This is output for every bundle that is created. I have two lazy loaded modules, main, inline, polyfills, vendor, styles, common.

Desired functionality.

AOT builds should complete without issue.

Mention any other details that might be useful.

Building without AOT works fine.

Most helpful comment

Just cleared my node_modules directory and reinstalled everything. Seems to work now somehow.

All 2 comments

Just cleared my node_modules directory and reinstalled everything. Seems to work now somehow.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings