smakosh/gatsby-portfolio-dev

graphql issue

umxr opened this issue · 12 comments

umxr commented

Getting this issue, not sure why. ive created a .env file and added my personal github token

screenshot 2018-12-27 at 21 59 05

Interesting, can you run yarn reset && yarn start, I used your username and managed to fetch your repositories without any issues.

Ok I found what's causing that issue, my mistake I thought creating .env file is like .env.development but it seems it doesn't recognize the .env env variables, I'll update the docs.

Just rename your .env file to .env.development and everything should work fine

Still getting this error and I have renamed the .env files.

to .env.development? and did you place the env variables?

to .env.development? and did you place the env variables?

@smakosh yes. Just the GitHub token.

Sent with GitHawk

weird, is it open source? if so can you send me the link to your repository

Just cloned and works fine, can you make sure to name the file exactly as .env.development and pass in this single env var with the right GitHub token:

GITHUB_TOKEN=xxxxxx

Run yarn reset then yarn start

Just cloned and works fine, can you make sure to name the file exactly as .env.development and pass in this single env var with the right GitHub token:

GITHUB_TOKEN=xxxxxx

Run yarn reset then yarn start

Yeah I've done just that.

Pretty weird, works fine for me and for others who I asked to test

Hey @twhite96 a fix has been pushed from one of Gatsby's members, you might want to give it a shot again

In my case the github token provided in env file was wrong. It works fine when I corrected it.