BrowserslistError: Unknown browser query `dead`

Changing my package.json from "bootstrap": "^4.1.2" to "bootstrap": "4.1.1" AND running

npm install bootstrap

solved my problem.

Notice that I removed ^ sign aswell

I guess its a problem in Bootstrap


For those that might experience this error on a React App.

Make a new file called .browserlistrc and cut the browserlist part away from package.json paste into the newly created file.

.browserlistrc

"browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11"
  ]
}

package.json

{
  "name": "cotd",
  "version": "0.0.3",
  "private": true,
  "engines": {
    "npm": "5.6.0",
    "node": "9.11.1"
  },
  "devDependencies": {
    "concurrently": "3.5.1",
    "react-scripts": "^1.1.4"
  },
  "dependencies": {
    "apollo-boost": "^0.1.27",
    "autoprefixer-stylus": "0.14.0",
    "axios": "^0.18.0",
    "firebase": "^5.8.2",
    "graphql": "^14.1.1",
    "graphql-tag": "^2.10.1",
    "prop-types": "^15.6.0",
    "react": "^16.3.0-alpha.1",
    "react-apollo": "^2.4.1",
    "react-dom": "^16.3.0-alpha.1",
    "react-router-dom": "^4.2.2",
    "react-transition-group": "^2.2.1",
    "stylus": "0.54.5"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "eject": "react-scripts eject"
  }
}

Run build again


if you are using older version of angular
you have to delete browserslist file from src folder