I have a project using a Gatsby theme starter and last week I was building my project with no problems what so ever, this morning I tried to run a new build without having done any prior changes at all I get some intimidating error. I need to fix this this project is due to go live soon..
Error Generating CSS failed
BrowserslistError: Unknown browser query dead
FYI - Also getting this on some NEW starter Gatsby repos.
[email protected]
[email protected]
[email protected]
OS - Ubuntu 16.04.5 LTS
I managed to fix this ran in my terminal $ node_modules/.bin/gatsby build
@xblue-light can you provide relevant environment information by running gatsby info --clipboard?
I also had the same issue... impossible to debug, working well on develop then crash on build.
gatsby info --clipboard gives me that :
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.12.0 - /usr/local/bin/node
Yarn: 1.7.0 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Browsers:
Chrome: 69.0.3497.100
Firefox: 61.0.1
Safari: 12.0
npmPackages:
gatsby: 1.9.266 => 1.9.266
gatsby-link: 1.6.44 => 1.6.44
gatsby-plugin-react-helmet: 2.0.11 => 2.0.11
gatsby-plugin-react-next: 1.0.11 => 1.0.11
gatsby-plugin-sass: 1.0.26 => 1.0.26
gatsby-plugin-typography: 1.7.19 => 1.7.19
npmGlobalPackages:
gatsby-cli: 2.4.1
This is a compatibility bug between gatsby-cli v2 and gatsby v1. Working on a fix which should be out later today.
Found the problem, it's because gatsby-cli is 2.x and should be 1.x.
Fix it with : npm install --global [email protected]
Thanks for the workaround @PierreBresson 馃憤
This should be fixed in [email protected] and later.
I confirm installing [email protected] fixes problem for me
Most helpful comment
I confirm installing
[email protected]fixes problem for me