Could not find plugin “proposal-numeric-separator”

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

    Reference: https://github.com/angular/angular-cli/issues/17262

    I found two solution

    a ) Install babel compat

    "devDependencies": {
        "@babel/compat-data": "7.8.0",
    } 
    

    b) Install plugin-proposal-numeric-separator

    npm install --save-dev @babel/plugin-proposal-numeric-separator
    

    install this version only 7.8.0

    1. Angular CLI can create this kind of issue. Go to package json and change it to

      build-angular": "0.803.17"

    please don't add ^ or ~ .

提交回复
热议问题