-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build --prod throwing exception #13582
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
Comments
I have the same error. This error is solved by installing the previous version of terser npm install [email protected] Note: This is a temporary solution |
This problem is related to terser/terser#251. Fix submitted in terser/terser#254 should address this. Workaround by @sodatea in vuejs/vue-cli#3407 (comment):
|
also getting this with for the first time after updating to 7.3.0 |
downgrade de terser angular/angular-cli#13582
downgrade de terser angular/angular-cli#13582
FYI Provided solution with "resolution" in package.json worked on: Problem only occurs on not-default build configurations e.g.: |
I also face this error when I run
|
1 similar comment
I also face this error when I run
|
error:
|
* ng new en /crud * arreglado bug de angular CLI angular/angular-cli#13552 * probando crear api service y hacer http * cors para permitir al dev server de crud acceder a la api * mas cabeceras cors & 200 para OPTIONS * ng pruebas & cambiado origin por explicito, si no las cookies no van * headers * * arreglado bug de angular cli downgrade de terser angular/angular-cli#13582 * creado resource, buildCrud | pendiente de probar en local * borrar dist force & build no prod * ng router: usar hash * env para PUERTO_API * build-crud: buildear para local * añadido env local en angular.json * referirse a la nueva config en el script * it works! * crud -> admin & base href * el directorio tambien xd * unificado build-admin en build * borrado script buildAdmin * añadido script serve admin * probando flujo fallo ajax * limpieza: dejado servicio auth que ya se ajustará & a modo de ejemplo * limpieza: resource probando delete * newline... * postLogin -> login * Delete README.md
damnnn this is breaking my build.... |
Same here, getting this after updating from |
it was caused by an error in terser. There is a workaround listed in the issue but it appears they have deployed a fix a couple hours ago anyway. |
Hello all, Both You can force your existing projects to use the new
|
Changing version of terser dependency since it was throwing an error during prod compilaton. See: angular/angular-cli#13582 I also realized I accidentally had a reference to a 'type' field in the car timer component, so removing that.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
No
Description
Building production for angular crashes because of Terser
🔬 Minimal Reproduction
Create a new angular app with "ng new my-app" as described on the angular.io get started
page and it will crash.
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: