Module #5 / Video #17
The video adds the gatsby-source-sanity plugin to gatsby-config. I was unable to get npm start to work after updating the file and received this error message in the terminal:
Key sentence:
"You should redeploy the GraphQL API everytime you make changes to the schema that you want to use in Gatsby by running sanity graphql deploy from within your Sanity project directory"
I had to open up the sanity folder in the project and run the command sanity graphql deploy and the I was able to run npm start again successfully.
Module #5 / Video #17 The video adds the gatsby-source-sanity plugin to gatsby-config. I was unable to get
npm start
to work after updating the file and received this error message in the terminal:After trying a few things I visited this link: https://github.com/sanity-io/gatsby-source-sanity#basic-usage
Key sentence: "You should redeploy the GraphQL API everytime you make changes to the schema that you want to use in Gatsby by running sanity graphql deploy from within your Sanity project directory"
I had to open up the sanity folder in the project and run the command
sanity graphql deploy
and the I was able to runnpm start
again successfully.