question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BrowserslistError: Unknown browser query `dead`

See original GitHub issue
/xxx/node_modules/postcss-cssnext/node_modules/browserslist/index.js:164
    throw new BrowserslistError('Unknown browser query `' + selection + '`')
    ^
BrowserslistError: Unknown browser query `dead`
    at /xxx/node_modules/postcss-cssnext/node_modules/browserslist/index.js:164:11
    at Array.reduce (<anonymous>)
    at resolve (/xxx/node_modules/postcss-cssnext/node_modules/browserslist/index.js:132:18)
    at browserslist (/xxx/node_modules/postcss-cssnext/node_modules/browserslist/index.js:224:16)
    at cleanBrowsersList (/xxx/node_modules/postcss-cssnext/node_modules/caniuse-api/dist/utils.js:56:59)
    at setBrowserScope (/xxx/node_modules/postcss-cssnext/node_modules/caniuse-api/dist/index.js:26:43)
    at Object.<anonymous> (/xxx/node_modules/postcss-cssnext/node_modules/caniuse-api/dist/index.js:88:1)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.

env

    "chalk": "2.4.1",
    "css-loader": "1.0.0",
    "cssnano": "^4.1.7",
    "dotenv": "6.0.0",
    "dotenv-expand": "4.2.0",
"postcss-aspect-ratio-mini": "0.0.2",
    "postcss-cssnext": "^3.1.0",
    "postcss-flexbugs-fixes": "4.1.0",
    "postcss-loader": "3.0.0",
    "postcss-preset-env": "6.0.6",
    "postcss-px-to-viewport": "0.0.3",
    "postcss-safe-parser": "4.0.1",
    "postcss-viewport-units": "^0.1.6",
    "postcss-write-svg": "^3.0.1",

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
rishabhnigamoyocommented, Jun 18, 2019

Here I have a quick fix. "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [] } Delete items inside the development array inside browser list.

1reaction
Cyberfolkscommented, Nov 15, 2021

this one worked for me. thanks @rishabhnigamoyo “browserslist”: { “production”: [ “>0.2%”, “not dead”, “not op_mini all” ], “development”: [] }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unknown browser query `dead` in React/Express App - Stack ...
I just got this when I tried to do a production build of my app. Looks like it is an issue with the...
Read more >
Module build failed: BrowserslistError: Unknown browser ...
It happpens because of old cssnano (it uses old Browserslist without dead query). We are triting to release cssnano 4 (with new Browserslist) ......
Read more >
Unknown browser query `dead`” #React #npm | Mixster
Sovling the browserlist error in ReactJS, angular, nodejs, npm and Vue through a simple quick fix.
Read more >
Browserslist on Twitter: "If you have “BrowserslistError ...
If you have “BrowserslistError: Unknown browser query `dead`”,. @vipulgupta2048. wrote a good article about how to fix this issue.
Read more >
Unknown browser query `dead` in React/Express App-Reactjs
Coding example for the question BrowserslistError: Unknown browser query `dead` in React/Express App-Reactjs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found