Could not find plugin “proposal-numeric-separator”

后端 未结 18 1164
情深已故
情深已故 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:17

    Add SKIP_PREFLIGHT_CHECK=true to .env file to make the build work without ejecting and follow the below steps:

    • Delete node_modules and package-lock.json
    • Add "resolutions": { "@babel/preset-env": "^7.8.7" } to package.json
    • Run npm install npm-force-resolutions --save-dev
    • Run npm install
    • Run npx npm-force-resolutions
    • Run npm install again
    • Run npm run build

提交回复
热议问题