-
Notifications
You must be signed in to change notification settings - Fork 131
Element type is invalid: expected a string ... Check the render method of Gallery
#150
Comments
Please don’t show pieces of files, show the entirety of all involved source files. |
Let me share whole test react app i created. |
For the time being, here is a question on stackoverflow my colleague posted, we are working separately on same issue(in a bid to solve problem by any means). |
What version of React-transition-group have you installed? If it’s not 1.x, that may be the issue |
Its 2.x Let me try with version 1.x |
It’s listed in the peerDependencies section of package.json. You likely overlooked warning messages in your console when installing dependencies. |
Yes it solved the problem. |
I'm thinking that I should either update the library to handle v2 of this dependency and/or make it an actual dependency instead of a peerDependency... |
Absolutely makes sense, handling v2 is better if you got some time. Otherwise at-least making it dependency will suffice for now. |
I'll re-open this as a reminder then. |
BTW if someone wants to open a PR that both moves React Fine Uploader to 2.x react-transition-group and moves this dependency from |
Hey guys , any progress with 2.x versions? |
See above comment |
hey @rnicholus, I have submitted a PR. Please review and suggest changes. |
fixed in v1.1.1 - just released |
I am trying to get fine uploader up and running on for many hours now. I have tried many different things but same error pops up.
What i tried:
1- Integrate in rails app
I have
I ran all below commands:
Than as installation guide states I imported:
in one of my jsx files and tried a basic example from the same guide which makes my react component's render method somethign like:
But than I am getting a warning followed by an error in browser console:
I checked and it is going in render method of installed react-fine-uploader's Gallery but than it thorws this error from that method.
2. Create fresh react app with rails and add fine-uploader in there
Same results after following same steps to add fine-uploader.
3. In a fresh react app( created with create-react-app )
Same error. Same steps followed.
Now, this can be a noob mistake somewhere because I am quite new to react, or this can be a potential bug. In both cases I think this will help some people having same issues if we get it resolved it.
I have seen this: https://stackoverflow.com/questions/34130539 it didn't help.
This can be a noob mistake as I am quite new to react, or it can be a bug or something which needs a fix.
The text was updated successfully, but these errors were encountered: