Ionic error when Generating ES5 bundles for differential loadind of

Ionic error when Generating ES5 bundles for differential loadind of

When using IONIC used when compiling the ionic cordova build android reported the following error

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.

The reason is less IONIC download time under plug-proposal-numeric-separator.
1, with npm can download the plug
npm install --save-dev @babel/plugin-proposal-numeric-separator
2, in the project directory search available-plugins.js file as shown below:
搜available-plugins.js
3, with a text editor open the input two codes are as follows

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

image
So then
4, after the re-implementation of ionic cordova build android can be.

Published an original article · won praise 1 · views 70

Guess you like

Origin blog.csdn.net/qq_41823263/article/details/105084611