Error | Could not find plugin "proposal-numeric-separator" | Generating ES5 bundles for differential loading
π Bug report
Command (mark with an x)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
Yes, the previous version in which this bug was not present was: a few hours agoDescription
A clear and concise description of the problem...Build doesn't work
π¬ Minimal Reproduction
npm install
node --max-old-space-size=4096 ./node_modules/@angular/cli/bin/ng build --prod
π₯ Exception or Error
Generating ES5 bundles for differential loading...
An unhandled exception occurred: [BABEL] C:\angular\dist\common-es2015.b1722ef05b43f664abc2.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "C:\\angular\\node_modules\\@angular-devkit\\build-angular\\node_modules\\@babel\\preset-env\\lib\\index.js")
See "C:\Users\Vegard\AppData\Local\Temp\ng-J7YoSB\angular-errors.log" for further details.
π Your Environment
Angular CLI: 8.3.25
Node: 12.14.1
OS: win32 x64
Angular: 8.2.14
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic
... platform-webworker, platform-webworker-dynamic, router
... service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.803.25
@angular-devkit/build-angular 0.803.25
@angular-devkit/build-optimizer 0.803.25
@angular-devkit/build-webpack 0.803.25
@angular-devkit/core 8.3.25
@angular-devkit/schematics 8.3.25
@angular/cdk 8.2.3
@angular/cli 8.3.25
@angular/material 8.2.3
@angular/pwa 0.803.25
@ngtools/webpack 8.3.25
@schematics/angular 8.3.25
@schematics/update 0.803.25
rxjs 6.5.4
typescript 3.5.3
webpack 4.39.2
Anything else relevant?
https://github.com/facebook/create-react-app/issues/8680
CHANGING
"@angular-devkit/build-angular": "^0.803.25"
TO
"@angular-devkit/build-angular": "0.803.23"
worked for me
Try to install
"@babel/compat-data": "~7.8.0"todevDependencies. This is the only workaround which helped me.
Thank god. This works. Angular Team please help in fixing this issue from angular cli end.
working
"@babel/compat-data": "7.8.0"
not working
"@babel/compat-data": "7.9.0"
Verified that it was a Babel bug introduced 3 days ago.
https://github.com/babel/babel/pull/11201
https://www.npmjs.com/package/@babel/preset-env
Lock down the versions of Babelβs packages using the tilde instead of the caret:
"dependencies": {
"@babel/preset-env": "~7.8.7",
"@babel/compat-data": "~7.8.6",
Hi kkilton, may I ask you how to do this lockdown? Is it equivalent procedure than the one given by Lakshitha Perera but for preset-env and compat-data ?
Hi kkilton, may I ask you how to do this lockdown? Is it equivalent procedure than the one given by Lakshitha Perera but for preset-env and compat-data ?
stchln, I didn't need to do all the extra steps that Lakshitha did (although I tried and it didn't work for me) I just updated the dependencies in the package.config. The tilde's are what's important. The caret will allow the versions to go up to minor 7.9.999 (which is where the problem is, minor version 9) where the tilde only allows the patch version to increase up to 7.8.999... You could also remove the tilde and caret completely until Babel gets a fix deployed. Hope this helps.
Will try, thanks a lot
Try to install
"@babel/compat-data": "~7.8.0"todevDependencies. This is the only workaround which helped me.
This procedure, break the compilation of es5 files in ionic for old webview system and older phone!
Resulting in Blank White Screen!

WORKARROUND On package.json add
"resolutions": {
"@babel/preset-env": "^7.8.7",
"@babel/compat-data": "~7.8.0"
}
run npx npm-force-resolutions
then run npm install or yarn
then run npm build or yarn build
WORKARROUND On package.json add
"resolutions": { "@babel/preset-env": "^7.8.7", "@babel/compat-data": "~7.8.0" }run
npx npm-force-resolutionsthen runnpm installoryarnthen runnpm buildoryarn build
Tried this and work on first try
This is not working for me, I still have the painful error on @babel/plugin-proposal-numeric-separator while in my package-lock.json I see compat-data 7.8.6 and preset-env 7.8.7
npm ls @babel/preset-env gives visual@ c:... β @babel/[email protected]
npm ls @babel/compat-data visual@ ... +β @babel/[email protected] Λβ @babel/[email protected] +β @babel/[email protected] deduped Β΄β @babel/[email protected] Β΄@babel/[email protected]
@jazarie2 just tried what you suggest and I can go up to npm build, thanks but then when, as sampleRHTMLVisual demo I am trying to build, I am requested to have @babel/plugin-proposal-numeric-separator when launching pbiviz package...
And If I do a npm install βsave-dev @babel/plugin-proposal-numeric-separator I get a warning that the plugin required a peer of @babel/core@^7.0.0-0 but none is installed
@stchln can you try and delete your node_module/@babel folder and then run npm install? I went down the route of trying to install the proposal-numeric-separator but ended up reverting that and didn't need it in the end. Your package-lock.json looks fine from the ls cmd but maybe try and delete it and re-gen it with npm install --package-lock?
working
"@babel/compat-data": "7.8.0"not working
"@babel/compat-data": "7.9.0"
that worked for me thanks
WORKARROUND On package.json add
"resolutions": { "@babel/preset-env": "^7.8.7", "@babel/compat-data": "~7.8.0" }run
npx npm-force-resolutionsthen runnpm installoryarnthen runnpm buildoryarn build
Tried this and also worked on first try
Same here
working
"@babel/compat-data": "7.8.0"not working
"@babel/compat-data": "7.9.0"that worked for me thanks
CHANGING
"@angular-devkit/build-angular": "^0.803.25"TO"@angular-devkit/build-angular": "0.803.23"worked for me
This worked for me. No problem with angular ng build.
WORKARROUND On package.json add
"resolutions": { "@babel/preset-env": "^7.8.7", "@babel/compat-data": "~7.8.0" }run
npx npm-force-resolutionsthen runnpm installoryarnthen runnpm buildoryarn build
This also worked for me on the first try. Thank you for the solution!
The above "WORKARROUND" worked for me.