redwood: @apollo/client cannot be resolved

In a recent update @apollo/client can no longer be resolved image

We have documentation stating that useLazyQuery can be imported from @apollo/client image

I believe that at som. point when the GrapqhlProvider was being introduced this fell through the cracks. Installing @apollo/client directly into src/web fixes it not being resolved.

Should users be required to install @apollo/client or should these be exported from @redwoodjs/web/apollo or make @apollo/client available to be imported.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (20 by maintainers)

Most upvoted comments

Hmm I might not have explicitly deleted the yarn lock file will give that a look try as soon as I get back to my computer

Running yarn why @apollo/client in both a project where it’s working and one where it’s not working would be very helpful 🙂

@thedavidprice

import { AuthProvider } from '@redwoodjs/auth'
import { isBrowser } from '@redwoodjs/prerender/browserUtils'
import netlifyIdentity from 'netlify-identity-widget'
import { FatalErrorBoundary } from '@redwoodjs/web'
import { RedwoodApolloProvider } from '@redwoodjs/web/apollo'
import FatalErrorPage from 'src/pages/FatalErrorPage'

A related PR for updating the documentation was recently submitted by @vchoy

https://github.com/redwoodjs/redwoodjs.com/pull/651

Additionally tagging @peterp @Tobbe from @thedavidprice request https://discord.com/channels/679514959968993311/716252919875240007/826917616400597023