react-create-app - get error about browserslist error

Viewed 4572

I just used npx create-react-app project-name and when I'm starting my project I'm getting this error:

/src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css) BrowserslistError: Unknown browser query android all. Maybe you are using old Browserslist or made a typo in the query.

Npm -v : 6.9.0
Node -v : v10.16.0
Windows 10 Pro
2 Answers

It is a new bug in BrowserList.

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.

Problem will be solved after install browserslist

npm i browserslist@4.6.3
Related