Gatsby + storybook + async/await + NODE_ENV=production == FAIL #6443
Labels
bug
compatibility with other tools
configuration babel / webpack
inactive
yarn / npm
Yarn / npm acting weird
Milestone
Describe the bug
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 behavior
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
)Screenshots
Missing
regenerator-runtime
module innode_modules
directoryCode snippets
Full repo here https://github.com/i8ramin/gatsby-test-prod-async
System:
Additional context
Related issue created in Gatsby repo: gatsbyjs/gatsby#13176
The text was updated successfully, but these errors were encountered: