smakosh/gatsby-portfolio-dev

Failed to compile

RomanFSDev opened this issue · 7 comments

Anyone else is getting this error?

GraphQL Error Encountered 1 error(s):

  • Unknown field 'github' on type 'Query'.

    file: ./gatsby-portfolio/new/gatsby-portfolio-dev/src/components/landing/Projects/index.jsx
    

Have you added the env variables mentioned on the docs?

The issue is caused by the gatsby-source-graphql, I provided more info to them, hopefully it will be fixed.

Meanwhile, downgrade your gatsby and gatsby-source-graphql to a previous version and give it a try.

It has been fixed @EdgarWright

I'm still experiencing the same problem when cloning the repo and running yarn && yarn start :/

I just tried and everything seems to work just fine. You probably forgot the GitHub token as env variable.