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. svn 提交到远程仓库_聊聊如何从SVN迁移源码到Git仓库
  2. Android-NDK-hello-jniCallback
  3. 通渭县义岗川镇之行(2020年11月19日)
  4. ffmpeg解码到opencv Mat中
  5. python切面_Python装饰器与面向切面编程
  6. Python核心编程第二版 第七章课后练习 7-6. 列表和字典
  7. 《关于促进大数据发展的行动纲要》提出三大指导意见
  8. Linux系统war包解压目录,linux系统下解压war包
  9. FastDFS上传下载原理解析
  10. Android开发之方向传感器的使用
  11. Entry name ‘firebase-abt.properties‘ collided
  12. 2021-09-16收集一些可以发外链的网站
  13. 一元泰勒展开式的理解
  14. 【C++】set/multiset/map/multimap
  15. python字符串format方法参数解释,一文秒懂!Python字符串格式化之format方法详解
  16. 优链时代获评“2022年度创新企业”| 第十届创新创业领袖峰会成功举办!
  17. Web 三维组态的仿真运用案例:民航飞机的数据监控
  18. python 协程池
  19. 3D建模大佬如何制作出惊艳四方的游戏建模
  20. 四、中英翻译、歌词、藏头诗、智能聊天

热门文章

  1. java后端技术路线_Java技术路线图
  2. 360浏览器首页设置为baidu.com 浏览器首页设置
  3. 用html+css+jQuery写俄罗斯方块——但钟离版
  4. 被男人抛弃后女人会变成什么样
  5. 常见的电脑自动关机命令
  6. 银行接口的私钥和公钥详解
  7. 知乎热榜?微博热门?爬!
  8. 《快速念咒——MySQL自学入门指南》:第1章第7节:IN、NOT——检索巴尔干甜豆(下)
  9. 中标麒麟linux6.5x64+oracle12c rac+udev绑定asm磁盘问题
  10. 基于蒙特卡洛法的定积分求解