Site fails to start due to dependency issue
Yes
npx docusaurus-init && yarn --cwd website start
Site runs
An exception is thrown:
BrowserslistError: Unknown browser query `dead`.
npx docusaurus-init && yarn --cwd website start
@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.