I am getting the following error when using npm
start to open create-react-app.
I'm new to React and I have had no problems the past few days doing the command line to make a new app.
I have tried npx
start, npm
start and installed npm
again for the updated version.
Failed to compile
./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 typo in query.
at Array.reduce (<anonymous>)
at Array.some (<anonymous>)
at Array.filter (<anonymous>)
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.