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
[Ionic v4] Build with --prod flag produces -> TypeError: Cannot read property 'minify' of undefined #17367
Comments
Look at workarounds here: |
I fix the problem with: |
The build command is from Angular, this seems to be a problem with the terser version. Here's an Angular CLI issue for it, please follow the bug here: angular/angular-cli#13582. |
I am going to close this as it looks like the linked issue has been fixed, thanks! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[x] 4.x
Current behavior:
The problem occurs when executing the command "ionic cordova build android " with the flag --prod, if it runs without the flag, no error occurs.
Expected behavior:
The APK generate with success.
Steps to reproduce:
The error occurs when you run the following command:
ionic cordova build android --prod
.Generates:
Related code:
Repository with the code that generates the error:
https://github.com/H4ad/minify-errors/
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: