-
Notifications
You must be signed in to change notification settings - Fork 198
"React.createElement: type is invalid" after upgrading to 5.0 #144
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
Comments
How do you import |
That's a good question, sorry for not mentioning that -- it's just like the example: const VisibilitySensor = require('react-visibility-sensor') |
One change from 4.1.X to 5.0.0 was the way
Does it work for you if you change your import to: |
That does indeed resolve the issue, thank you. So does that mean the example in the README needs to be updated? |
Created #146 |
Thank you @markuskr . It worked for me too. |
I had to switch from
to
works fine now |
Code works fine with version 4.1.3, but raises an error in 5.0:
Using Electron 1.8.8 (Node.js v8.2.1), react(-dom) 16.6.3. Code looks like this:
I substituted the example from the README, but that didn't make a difference.
The text was updated successfully, but these errors were encountered: