Docusaurus: BrowserslistError: Unknown browser query 'dead'

Created on 26 Feb 2019  路  11Comments  路  Source: facebook/docusaurus

馃悰 Bug Report

Site fails to start due to dependency issue

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

npx docusaurus-init && yarn --cwd website start

Expected behavior

Site runs

Actual Behavior

An exception is thrown:

BrowserslistError: Unknown browser query `dead`.

Reproducible Demo

npx docusaurus-init && yarn --cwd website start
help wanted

All 11 comments

@dfadev Did you figure out the issue? Mind providing some insight?

No. I wasn't able to repro on another machine. Are you getting the same exception?

Hi, I am having the same exception when running npm start in the website directory.

I am getting the same issue. Anyone have an idea why this is?
BrowserslistError: Unknown browser query 'dead'

Are you getting this issue only with npm start? Does yarn start work? I know that yarn --cwd website start was causing an issue. I am wondering if cd website; yarn start works?

Getting the same error. yarn start and npm start give the same error.

Updated node_modules deleted and reinstalled node_modules. Same thing happens.

There is a BroswerList object in your package.json in the main part of whatever app your docs live in. I deleted that and got it to work. Try that and see if it works for you.

cc @yangshun @endiliey ^

Is it correct to assume that this bug only occurs if your docusaurus app lives inside another app with another package.json ? 馃憤

@twhite96 is correct, thank you! -- I am able to repro this on multiple machines by placing the following package.json in my home directory:

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

Am closing this because according to Browerslist docs, it's the expected behavior to search for a browerslist key in package.json in current and parent directories.

You can resolve this error by adding a browerslist key to website/package.json.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yangshun picture yangshun  路  61Comments

arifszn picture arifszn  路  24Comments

slorber picture slorber  路  23Comments

cameronelliott picture cameronelliott  路  28Comments

yangshun picture yangshun  路  27Comments