Skip to content

Conversation

@liweinan0423
Copy link
Contributor

the combination next@latest and react@15 is not working anymore as the latest next version requires react 16. so we need to pin the dependencies to specific versions

@liweinan0423 liweinan0423 changed the title pin dependencies [update example - with-apollo-and-redux] pin dependencies Oct 19, 2017
@timneutkens
Copy link
Member

timneutkens commented Oct 19, 2017

Does the example work with v4?

@liweinan0423
Copy link
Contributor Author

@timneutkens yep, next v4 requires react 16

"graphql": "^0.9.3",
"isomorphic-fetch": "^2.2.1",
"next": "latest",
"next": "^4",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then lets keep this latest

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. but when we get next 5 that might requires react 17, then we would need to do this again. But I think it's OK so users of this example would have to always use the latest React to play here

"next": "^4",
"prop-types": "^15.5.8",
"react": "^15.5.4",
"react": "^16",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And make this ^16.0.0 for consistency

@timneutkens
Copy link
Member

Thanks @liweinan0423! If you update the 2 comments I had I'll merge it in 🙌

Copy link
Member

@timneutkens timneutkens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@timneutkens timneutkens merged commit 9b53d00 into vercel:master Oct 19, 2017
@lock
Copy link

lock bot commented May 10, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants