You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know what I am doing wrong. At first I thought that the package doesn't work with remote urls, but I imported the image and I still get the follow error. If I remove the ideal image and just use img src everything works.
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of `IdealImage`.
The text was updated successfully, but these errors were encountered:
Yeah I'm getting this as well. Tried using the exact same props etc as in the example of the readme.
Update: took me about 5 seconds to fix this after reading other issues. Its caused by react-waypoint v9 so just need to specify v8 in your package json. I would suggest the maintainers start handling their Peer Dependencies correctly in response to this instead of requiring people to manually install them. Or at least add this correction to the docs.
react-ideal-image
version:v0.0.5
node
version:v12.10.0
npm
(oryarn
) version:yarn 1.15.2
Relevant code or config
I don't know what I am doing wrong. At first I thought that the package doesn't work with remote urls, but I imported the image and I still get the follow error. If I remove the ideal image and just use
img src
everything works.The text was updated successfully, but these errors were encountered: