-
Notifications
You must be signed in to change notification settings - Fork 786
Support React 16 #760
Comments
+1 |
@jpshelley @nouh we've already included react@16-alpha to peer dependencies. If there are any other changes we need to make, please send over a PR! |
Even though I have react-dom@15 included as a dependency of my project, react-dom@16 gets installed as a dependency of react-apollo, which causes rendering incompatibilities. Note: this doesn't happen for react package itself. |
Yes, that could very well be the reason. Which version of npm are you using? @jbaxleyiii do you remember why we moved this to an optional dependency? I feel like it had something to do with typescript types. |
I'm using yarn, haven't tried with npm. |
@helfer it might not be development related but only test related. My React Native app runs fine with the apollo versions listed, but my tests are failing. I know Enzyme is broken currently against React 16 so maybe thats the issue? enzymejs/enzyme#1007 |
I also have a problem with having react-dom@16 in optional dependencies in yarn.lock, as tests are failing due to: |
Same issue here:
This is breaking my build. |
For me when react-apollo is doing this:
it resolves like this:
But in my dependencies I have:
which resolves with this:
So the versions is mismatching. So how could we use react-apollo with the latest stable version of react, instead of alpha versions? |
Can i suggest rolling back the change to add react alpha, and adding that in a new major version, since it's clearly a breaking change. That way anyone who wants to upgrade can, while the rest of us can continue without issue |
For me forcing react-dom to v15 by requiring it as |
This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo! |
This issue has been automatically closed because it has not had recent activity after being marked as no recent activyt. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to React Apollo! |
I don't think this should be closed 😕 |
Steps to Reproduce
It seems apollo will need to support React 16 sooner rather then later. React-Native under the hood is already using
[email protected]
facebook/react-native#13291
See the couple of issues linked to that specific issue ^^
Yes its dumb that they depend on an alpha version. Is there anyway for Apollo to support it?
For what its worth my build currently seems to function okay minus some warnings, but jest testing support is failing due to conflicts between dependencies.
Buggy Behavior
Expected Behavior
Tests should pass.
Version
The text was updated successfully, but these errors were encountered: