Ionic android build fails with Could not find plugin "proposal-numeric-separator"
This is how i fixed the exact same exception :
1-Open package.json and add
"resolutions": {
"@babel/preset-env": "^7.8.7"
},
"dependencies": {..}
2- run npx npm-force-resolutions
3- run npm install
Now you're good to go..
Change your tsconfig.json file target value
form { "target": "es2015" } to { "target": "es5" }
this work for me.
After a few try :
- Install
npm i @babel/plugin-proposal-numeric-separator
- Go to
node_modules/@babel/preset-env/lib/available-plugins.js
- Add
var _pluginTransformNumericSeperator = _interopRequireDefault(require("@babel/plugin-proposal-numeric-separator"));
- And add
"proposal-numeric-separator": _pluginTransformNumericSeperator
to default variable