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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error TypeError: Cannot read property 'minify' of undefined on prod build #28502

Closed
vasicvuk opened this issue Feb 2, 2019 · 3 comments

Comments

@vasicvuk
Copy link

vasicvuk commented Feb 2, 2019

馃悶 bug report

Affected Package

I tested with @angular packages version 7.2.3 and 7.2.2 but for both i get

TypeError: Cannot read property 'minify' of undefined at minify terser-webpack-plugin/dist/minify.js:175:23

Description

while running the command ng build --prod --build-optmizer=false i get error:

TypeError: Cannot read property 'minify' of undefined at minify terser-webpack-plugin/dist/minify.js:175:23

I have build application last day and i have logs from CI that the same code was built last day. It seems that some package is broker.

馃實 Your Environment

Angular Version:

@angular-devkit/architect         0.12.1
@angular-devkit/build-angular     0.12.1
@angular-devkit/build-optimizer   0.12.1
@angular-devkit/build-webpack     0.12.1
@angular-devkit/core              7.2.1
@angular-devkit/schematics        7.2.2
@angular/cdk                      7.3.0
@angular/material                 7.3.0
@ngtools/webpack                  7.2.1
@schematics/angular               7.2.2
@schematics/update                0.12.2
rxjs                              6.3.3
typescript                        3.1.6
webpack                           4.23.1
@teogl
Copy link

teogl commented Feb 2, 2019

You can see a temporary solution in #13582

@vasicvuk
Copy link
Author

vasicvuk commented Feb 4, 2019

Closing since it is duplicate angular/angular-cli#13582

@vasicvuk vasicvuk closed this as completed Feb 4, 2019
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants