adamsoffer / next-apollo

React higher-order component for integrating Apollo Client with Next.js
MIT License
482 stars 64 forks source link

New release: apollo-client v3 #78

Closed qathom closed 4 years ago

qathom commented 4 years ago

Hi @adamsoffer

Thanks for creating next-apollo! I just opened a pull request to support apollo-client v3.

This allows us to use next-apollowith this new release and avoid this kind of error:

Module not found: Error: Can't resolve '@apollo/react-ssr' in '/Users/ameizoso/Workspaces/Logitech/etail-platform/node_modules/next-apollo/dist'

React Apollo’s SSR utilities (like getDataFromTree, getMarkupFromTree, and renderToStringWithData) are included in the @apollo/client package. Access them via @apollo/client/react/ssr:

adamsoffer commented 4 years ago

PR merged and v5.0.0 published! Thanks @qathom !