example-company-website-gatsby-sanity-combo icon indicating copy to clipboard operation
example-company-website-gatsby-sanity-combo copied to clipboard

Using Gatsby Cloud - Preview build fails

Open ChristianLobaugh opened this issue 5 years ago • 1 comments
trafficstars

If you install the project to Gatsby Cloud the preview build fails with the following error:

Error Generating development JavaScript bundle failed /usr/src/app/www/web/src/components/block-content/slideshow.js

Error React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render. Did you accidentally call a React Hook after an early return? react-hooks/rules-of-hooks

ChristianLobaugh avatar Dec 07 '19 17:12 ChristianLobaugh

Thanks for reporting – we'll look into it!

kmelve avatar Dec 09 '19 07:12 kmelve