score:35

Accepted answer

it is a new bug in browserlist.

there are new reports on this both in create-react-app: https://github.com/facebook/create-react-app/issues/7239

and in browserlist: https://github.com/browserslist/browserslist/issues/382#issuecomment-502991170

as suggested by john forbes below the workaround given on the github issue is to change the browserslist entry in package.json to

"browserslist": []

this will build and run the project.

score:1

at the moment you can try this and wait for further fix

"browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [  
    ]
  }

score:1

i can confirm that forcing a yarn resolution for caniuse-lite@1.0.30000974 fixes the error. it must be an issue with the latest caniuse-lite@1.0.30000975 release.

temporary solution:

in package.json add

"resolutions": { "browserslist": "4.6.2", "caniuse-lite": "1.0.30000974" },

this method solved my problem.

score:2

as proper temporal solution till bug fixing: add to package.json this:

  "resolutions": {
    "browserslist": "4.6.2",
    "caniuse-lite": "1.0.30000974"
  },

Related Query

More Query from same tag