Could not find plugin “proposal-numeric-separator”

后端 未结 18 1158
情深已故
情深已故 2020-12-08 00:04

How to fix Could not find plugin \"proposal-numeric-separator\", I get this error when I try to build my React application, I have not ejected the application y

18条回答
  •  星月不相逢
    2020-12-08 00:36

    I faced similar issue and i was able to fix it by updating all babel dependencies to latest version. I'm not aware of the exact issue with babel. However, the below mentioned step worked for me.

    Step 1: identify and remove all babel related dependencies from package.json

    npm remove @babel/runtime @babel/core @babel/plugin-proposal-class-properties @babel/plugin-transform-modules-commonjs @babel/plugin-transform-runtime @babel/preset-env @babel/preset-react babel-eslint babel-jest babel-loader
    

    Step 2: re-install babel dependencies

    npm install --save @babel/runtime
    
    npm install --save-dev @babel/core @babel/plugin-proposal-class-properties @babel/plugin-transform-modules-commonjs @babel/plugin-transform-runtime @babel/preset-env @babel/preset-react babel-eslint babel-jest babel-loader
    

    PS: The above list of babel dependencies will differ for your project.

提交回复
热议问题