Open AndrewSouthpaw opened 6 years ago
I don't understand why this build is failing, it builds fine locally. My only guess is that this build uses npm 2.14.4
and I use npm 5.6.0
.
Thoughts?
Any update on this? Would be great to have this merged! Let me know if I can help in any way
It looks like the build is failing because the React version is specified as 15 in the .travis.yml, but react-dom is installing 16.2.0
Given the current state of the tests, the easiest solution here is to modify the .travis.yml
to install react-dom
at the version specified in ENV. The better solution would probably be to involve react-dom/test-utils
in the Component test and to update the .travis.yml
to instead install React 16. As it stands now the tests fail under React 16 as they are using the deprecated React.createClass
method.
Interesting. If they're using React.createClass
I wonder why it doesn't blow up for React 16...
Also the npm WARN peerDependencies
The peer dependency react included from reflux will no longer
be automatically installed to fulfill the peerDependency in npm 3+.
Your application will need to depend on it explicitly.
React needs to be moved from peerDependecies
to dependencies
@AndrewSouthpaw I believe createClass is only used for the component tests.
FWIW, I had modified the travis build to install react-dom at the specified version in #545 and received a log4js error during build, so I think that is also likely to be an impediment to a merge.
Ah, that makes sense.
You can go ahead and use https://github.com/ied3vil/reflux-react-16
Also, if you feel you want to improve, you can PR
Is there any update on this? I too would like to update the React version but not sure if it will break anything.
Just use the repo i posted above your comment, we have been using it in production with React 16.x without issues for a year
Based on #537, and from my own testing, the latest Reflux works fine with React 16. This PR updates the peer dependency to include React 16.