brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)
https://brainhub.eu/
MIT License
1.07k stars 165 forks source link

App throws error on running Gatsby Build #634

Open royleochan opened 3 years ago

royleochan commented 3 years ago

Describe the bug Hi I am making a react app using gatsby and im using the react-carousel. However when i try to build, I am getting the following error in my build log: "Building static HTML failed for path "/projects/". When I go to the react error decoder, the full text of the error i encounter is Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

When I comment out and not use the react-carousel component, the build will run successfully so it seems like react-carousel is causing the bug. More information can be found in the screenshots below.

To Reproduce Steps to reproduce the behavior: Run gatsby build

Expected behavior For gatsby to be done building successfully

Screenshots

Screenshot 2020-08-11 at 4 52 28 AM

Screenshot 2020-08-11 at 4 52 52 AM

Additional context Trying to build the gatsby app but facing this error. Would appreciate any help. Thank you!

alexleone commented 3 years ago

Any luck, this is happening to me on nextjs.