-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Element type is invalid: expected a string (for built-in components) or a class/function... #2206
Comments
I can reproduce this exact issue. |
allow react-slick to be bundled into a library
Could avoid this error by using the component like this: import Slider from "react-slick"; <Slider.default> |
Just had the same problem. The imported object was Fixed with this:
Maybe this is just an issue of my implementation of ssr. |
Still an issue - tried the |
Thanks, it did a trick. |
In our case this solution #2206 (comment) did not work. We solved it this way:
|
Still an issue, at least for us on the version The fix from @paolozanotti-f2 #2206 (comment) worked though, so thank you. |
I am using react-slick as a dependency in one of my custom react package. Slider works fine in the component whereas it throws below error when we publish the component as a package and use it in another component.
Error :
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method 'SimpleSlider'.
The text was updated successfully, but these errors were encountered: