Could not find plugin “proposal-class-properties”. Ensure there is an entry in ./available-plugins.js

Bug Report

Current behavior
The ng build in Angular 8 & 9 produces below error
[BABEL] C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\dist\main-es2015.js: Could not find plugin “proposal-class-properties”. Ensure there is an entry in ./available-plugins.js for it. (While processing: “C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules\@babel\preset-env\lib\index.js”)
Error: [BABEL] C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\dist\main-es2015.js: Could not find plugin “proposal-class-properties”. Ensure there is an entry in ./available-plugins.js for it. (While processing: “C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules\@babel\preset-env\lib\index.js”)
at getPlugin (C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules@babel\preset-env\lib\index.js:67:11)
at C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules@babel\preset-env\lib\index.js:258:62
at Array.map ()
at C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules@babel\preset-env\lib\index.js:258:43
at C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules@babel\helper-plugin-utils\lib\index.js:19:12
at C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules@babel\core\lib\config\full.js:179:14
at Generator.next ()
at Function. (C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules@babel\core\lib\gensync-utils\async.js:26:3)
at Generator.next ()
at step (C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules\gensync\index.js:254:32)
at evaluateAsync (C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules\gensync\index.js:284:5)
at Function.errback (C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules\gensync\index.js:108:7)
at errback (C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules@babel\core\lib\gensync-utils\async.js:70:18)
at async (C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules\gensync\index.js:183:31)
at onFirstPause (C:\Users\NagaRam\source\repos\MyyPub.Web\ClientApp\node_modules\gensync\index.js:209:13)
at Generator.next ()

Expected behavior
The build should be complete without errors

Environment
npx: installed 1 in 5.113s

System:
OS: Windows 10 10.0.17134
Binaries:
Node: 12.16.3 – C:\Program Files\nodejs\node.EXE
npm: 6.14.4 – C:\Program Files\nodejs\npm.CMD
npmPackages:
@babel/plugin-proposal-class-properties: ^7.12.1 => 7.12.1

  • Babel version(s): ^7.12.1 => 7.12.1
  • Node/npm version: Node 12/npm 6
  • OS: [e.g. Windows 10
  • Monorepo: no
  • How you are using Babel: CLI

Possible Solution

Additional context

2 thoughts on “Could not find plugin “proposal-class-properties”. Ensure there is an entry in ./available-plugins.js