-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gatsby + storybook + async/await + NODE_ENV=production == FAIL #13176
Comments
Btw, adding regenerator-runtime to Also, does Gatsby need or care about |
Hi @i8ramin, thanks for the sample repo. On my local machine, I am unfortunately not able to reproduce the error. The build works fine for me. That said, I'm not sure that one should necessarily expect a build to be successful if only production dependencies are installed. |
Hi @i8ramin, sorry, I just realized I provided a link to the NPM docs while your reproduction steps use Yarn. I just cloned the repo again and still no issues with the build when using Yarn. Same treatment in regards to Closing this issue as I believe the Gatsby code is working as expected. Best! |
Description
For some reason, the following combination of things causes the Gatsby build to fail:
async/await
code@storybook
packagesNODE_ENV=production
Steps to reproduce
Repo with basic Gatsby setup + @storybook devDependencies + async/await code:
https://github.com/i8ramin/gatsby-test-prod-async
git clone https://github.com/i8ramin/gatsby-test-prod-async cd gatsby-test-prod-async NODE_ENV=production yarn install --ignore-optional NODE_ENV=production yarn build
Possibly related GH issues
Expected result
Expect the site to build just fine. Which it does if you do any of the following:
async/await
code, it builds just fine.devDependencies
, it builds just fine.dependencies
, it builds just fine (after issuingrm -rf node_modules && NODE_ENV=production yarn install --ignore-optional
)Actual result
Environment
System:
OS: macOS 10.14.3
CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Shell: 5.7.1 - /usr/local/bin/zsh
Binaries:
Node: 11.6.0 - ~/.nvm/versions/node/v11.6.0/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.5.0-next.0 - ~/.nvm/versions/node/v11.6.0/bin/npm
Languages:
Python: 2.7.15 - /usr/local/bin/python
Browsers:
Chrome: 73.0.3683.103
Firefox: 54.0.1
Safari: 12.0.3
npmPackages:
gatsby: ^2.3.5 => 2.3.14
gatsby-plugin-root-import: 2.0.5 => 2.0.5
The text was updated successfully, but these errors were encountered: