react-selectize
react-selectize copied to clipboard
NPM not updated with create-react-class update
NPM package still using React.createClass
, resulting in the same errors as before. Build scripts also give an error when I try to manually install.
+1. React 16 is now in beta, and with these warning i can't switch to it. Can I open PR or something to help ?
@KatSick I just ended up switching to react-select unfortunately. Looks like that is being updated fairly often.
@KatSick, Already did it on my PR #160.
Try version 3.0.0 it's react 16 compatible thanks @elisherer
@furqanZafar thanks for the update. I just tried upgrading to 3.0.0 but am getting errors about react-dom-factories
being missing (I added it as a regular dependency to my project but still get errors)
./node_modules/react-selectize/src/DivWrapper.js
Module not found: Error: Can't resolve 'react-dom-factories' in 'node_modules/react-selectize/src'
i added it as a peer dep
I published a new version 3.0.1, to lock react-transition-group peer dependency to version 1.1.2 for now (the latest version has many breaking changes), your package.json must look like this
{
"dependencies": {
"react": "^16.0.0-beta.2",
"react-addons-css-transition-group": "^15.6.0",
"react-addons-shallow-compare": "^15.6.0",
"react-dom": "^16.0.0-beta.2",
"react-dom-factories": "^1.0.0",
"react-selectize": "^3.0.1",
"react-transition-group": "^1.1.2"
}
}
thanks, that worked! 👍
@furqanZafar I think that we don't need react-addons-css-transition-group and react-addons-shallow-compare in dependencies anymore?
@vkrol Hey, I had the same issue. But looks like we need react-addons-css-transition-group
and react-addons-shallow-compare
.