简体   繁体   English

ng build:如何设置 ES5 包的重试次数

[英]ng build: How to set the number of retries for ES5 bundles

My dev-build always retries 3 times.我的开发版本总是重试 3 次。 I'd like it to fail immediately (no retries).我希望它立即失败(不重试)。

In angular-issue #16520 an error message shows that it fails after the 1st retry:angular-issue #16520 中,错误消息显示它在第一次重试后失败:

Generating ES5 bundles for differential loading... An unhandled为差分加载生成 ES5 包...一个未处理的
exception occurred: cancel after 1 retries !发生异常: 1 次重试后取消!

How can we set the max number of retries for ES5 bundle generation?我们如何设置 ES5 包生成的最大重试次数?

I do not think you should change the retries count.我认为您不应该更改重试次数。 I resolved this issue by downgrading the @angular-devkit/build-angular to 0.801.2我通过将@angular-devkit/build-angular降级到0.801.2解决了这个问题

npm install @angular-devkit/build-angular@0.801.2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 发生未处理的异常:在工作空间中未设置配置'es5'。 ng在角度8中投放es5 - An unhandled exception occurred: Configuration 'es5' is not set in the workspace. ng serve in angular 8 for es5 Angular 9 build 正在为差异加载生成 ES5 包...发生未处理的异常: - Angular 9 build Generating ES5 bundles for differential loading... An unhandled exception occurred : Angular 9:“为差异加载生成 ES5 包...”时出错:标识符紧跟在数字后面 - Angular 9: Error while “Generating ES5 bundles for differential loading…”: Identifier directly after number Angualr 9 - ng build --prod 创建了多个 es5 和 es2015 js 文件 - Angualr 9 - ng build --prod created multiple es5 and es2015 js files Angular 库未构建为 es5 目标 - Angular library not build to es5 target 如何在Django模板中加载在``ng build --prod''中创建的webpack捆绑包? - How to load the webpack bundles created in 'ng build --prod' in django templates? 如何为用Es6编写的angularjs 2设置脚本标签以移植到Es5 - How to set up script tags for angularjs 2 written in Es6 for transpilation to Es5 在es5中的ng.core.component中使用.Class方法 - whta is use of .Class method in ng.core.component in es5 常规ES5(Angular 2.0)中的ng-model - ng-model in regular ES5 (Angular 2.0) 如何将Angular代码转换为ES5 - How to convert Angular code to ES5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM