react-carousel
react-carousel copied to clipboard
App throws error on running Gatsby Build
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
Additional context Trying to build the gatsby app but facing this error. Would appreciate any help. Thank you!
Any luck, this is happening to me on nextjs.