Ionic在Generating ES5 bundles for differential loadind的时候报错

在使用IONIC时用ionic cordova build android进行编译的时候报如下错误

ng.cmd run app:ionic-cordova-build --platform=android
Generating ES5 bundles for differential loading...
An unhandled exception occurred: [BABEL] F:\code\Ionic\hg\www\0-es2015.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "F:\\code\\Ionic\\hg\\node_modules\\@babel\\preset-env\\lib\\index.js")
See "C:\Users\CXK\AppData\Local\Temp\ng-xjeznd\angular-errors.log" for further details.
[ERROR] An error occurred while running subprocess ng.

出现原因是IONIC在下载的时候少下了proposal-numeric-separator插件.
1、用npm下载该插件即可
npm install --save-dev @babel/plugin-proposal-numeric-separator
2、在项目目录搜available-plugins.js文件如下图所示:

3、用文本编辑器打开分别输入如下两段代码

var _pluginProposalNumericSeparator = _interopRequireDefault(require("@babel/plugin-proposal-numeric-separator"));
"proposal-numeric-separator": _pluginProposalNumericSeparator.default,



4、之后再执行ionic cordova build android即可。

Ionic在Generating ES5 bundles for differential loadind的时候报错相关推荐

  1. ionic ios查看大图报错 the file to show is not valid image,or could not be loaded

    ionic ios查看大图报错 the file to show is not valid image,or could not be loaded 解决代码如下 public showImage(u ...

  2. ionic xcode 上传appstroe 创建Distribution证书报错 you already have a current iOS Distribution certificate

    ionic xcode 上传appstroe 创建Distribution证书报错 you already have a current iOS Distribution certificate 报错 ...

  3. ionic build android release,ionic build android -release运行报错

    ionic build android -release运行报错,Could not reserve enough space for 2097152KB object heap,检查了应该有足够的空 ...

  4. ionic start myApp 报错

    今天回来在家 ionic start myApp 报错: Installing npm packages- Error with start undefined Error Initializing ...

  5. Altium Designer在由原理图导入PCB图报错:Number of nets in differential pair NET-TX+ is 1 instead of 2

    一.问题描述. Altium Designer在由原理图导入PCB图报错:Number of nets in differential pair NET-TX+ is 1 instead of 2.内 ...

  6. ubuntu安装celery报错 encountered error while generating package metadata

    ubuntu安装celery报错 encountered error while generating package metadata Preparing metadata (setup.py) . ...

  7. linux虚拟机启动报错,Generating“/run/initramfs/rdsosreport.txt“

    linux虚拟机启动报错,Generating"/run/initramfs/rdsosreport.txt" 今天在使用k8s部署elk日志系统的时候,部署完成后一直在后台跑着, ...

  8. 使用ionic cordova build android --release --prod命令打包报错解决方法

    使用ionic cordova build android --release --prod命令打包报有如下错误及解决方法 只要把以下内容添加到build-extras.gradle或(build** ...

  9. 【前端】ionic 报错“Unable to find command”

    前言     小编最近接触了Ionic框架的项目,首先需要安装配置环境,然后启动项目,然而在运行项目的时候遇到了error:Unable to find command. Error 一.本地安装Io ...

最新文章

  1. H3C路由器的备份与还原(1)
  2. 谷歌54量子计算机,量子计算机要来了:谷歌开发了一种名为“ Sycamore”的新型54比特处理器,其200秒产生的输出将需要世界上最快的超级计算机10,000年 - googleblog...
  3. 数据可视化(BI报表的开发)第一天
  4. [Linux C]递归遍历指定目录,以目录树形式展示
  5. android 通知写法_Android架构设计MVP模式第(二)篇,如何减少类爆炸
  6. 一、auto_test_base
  7. jdbc编程遇到文件上传
  8. linux文件映射mmap
  9. Linux安全加固手册
  10. 404错误是什么意思?为什么是404?
  11. 钉钉H5应用后台回调地址设置(服务端代码逻辑编写).NetCore API
  12. numpy.percentile()函数
  13. 红黑树(一)的原理和算法详细介绍
  14. 商城会员积分过期的实现方案
  15. win10台式机屏幕亮度无法调节
  16. Log4J的入门简介学习【转】
  17. javascript检查移动设备是否支持重力方向感应
  18. 推荐一个记事本程序(替代windows记事本)
  19. 电子计算机与多媒体课件背景,《多媒体CAI课件制作》教学课件(全套).ppt
  20. 如何做微信分享抽佣以及分佣金

热门文章

  1. 光与夜之恋服务器维护,《光与夜之恋》什么时候上线 开服时间介绍
  2. 自主开发 java 股票分析软件
  3. 数学作文计算机,数学日记作文
  4. 基于《Combining Sketch and Tone for Pencil Drawing Production》的图像铅笔画算法的实现
  5. 极致CMS翻译插件自动批量多语种翻译
  6. vtk灯光效果 vtklight
  7. java实现租车系统
  8. 【Java技术系列】爱情36技之Bug大战
  9. 使用matlab建立Kd-tree并进行k-NN查询
  10. centos php管理面板,Centos 搭建LAMP平台 + Web控制面板管理