Open exposuredesign opened 4 years ago
hi there! this workshop used gatsby-plugin-apollo@0.1.1
, so it looks like they've shipped some breaking changes since then
I just recorded an episode of Learn With Jason with @stemmlerjs where we went over Apollo Client v3, so maybe that will help fill in the gaps? https://www.learnwithjason.dev/let-s-learn-apollo-client-v3 (video will be at this link tomorrow; for now it's on Twitch)
Hi! 👋
I just ran into this, and was able to fix by:
yarn remove gatsby-plugin-apollo graphql-tag @apollo/react-common @apollo/react-hooks
yarn add gatsby-plugin-apollo @apollo/client
In src/components/results.js
:
- import { useQuery } from '@apollo/react-hooks';
- import gql from 'graphql-tag';
+ import { gql, useQuery } from '@apollo/client';
HTH.
excellent, thank you so much for sharing @jacine!
I'm going to leave this issue open to hopefully help future googlers 💜
Thank YOU @jlengstorf! The course was fantastic. I really enjoyed it. 👏
Hi Jason,
Getting an error message when trying to run the look up site once we add results component:-
`Generating SSR bundle failed
Can't resolve '@apollo/client' in ...node_modules/gatsby-plugin-apollo'`
Has there been some changes to apollo? What package versions were you using?
`"dependencies": {
}`