I have been using for a while React-Select and I just got the next error after I run npm install and npm run watch:
React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of ...
This error appeared on a file that I did not modify for a while and all was working fine until today when I believe react-select stopped working. As soon as I deleted the
having the same issue
[email protected] & [email protected]
I had to do: npm uninstall [email protected]
and run
npm install [email protected]
to be able to continue working.
@jcabrerazuniga that worked, thanks!
Hi @jcabrerazuniga I'm using [email protected] & [email protected] in production and not experiencing this. Can you please provide a reproducible case?
I will try. My code has been working fine using [email protected]. Last time I downloaded my project from my repository and executed npm install, during runing time, it failed everywhere I used react-select until I uninstalled [email protected] and installed [email protected] again. At present my code is fine. I have the feeling something was changed on the specs.
Weired, I am getting the same error today, but going back to [email protected] doesn't fix it.
All I can say that react-select is now also broken on my machine.
+1 @jcabrerazuniga thanks for including the workaround.
It is working for me again, also with rc10 after modifying the import statement in my project.
Scullman, how did you use the import?
Well, I was using f#/fable, with gets transpiled to JS:
I switched from import "*" "react-select" to importDefault "react-select". The last expression should be transpiled to import Select from 'react-select';
@jcabrerazuniga are you still having issues with your react-select build?
For now, and until we release our app we will stay with [email protected]. After we release I will have time to get deeply into this problem. thanks for asking
Some information:
In windows 10, without any modification to my code, I have to continue going backwards to npm install [email protected] . However, this is not the case if using npm (installed through nvm) in Ubuntu 16.04LTS.
for me, it dont work on mac or ubuntu, i downgraded to rc5 and all works, is a import issue i think, in my code i import it like this -> import Select from 'react-select'; rc5 works, >rc5 broke all.
I have been importing using:
var Select = require('react-select');
and getting into problems for >rc5 (under windows 10). could this be the trouble?
Hello -
In an effort to sustain the react-select project going forward, we're closing old issues / pull requests.
We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version.
If you feel this issue / pull request is still relevant and you'd like us to review it, please leave a comment and we'll do our best to get back to you.
Most helpful comment
I had to do: npm uninstall [email protected]
and run
npm install [email protected]
to be able to continue working.