This repository was archived by the owner on Apr 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
This repository was archived by the owner on Apr 23, 2024. It is now read-only.
Errors: Following the steps outlined in the README #1
Copy link
Copy link
Closed
Description
Any ideas on what my be causing Load GraphQL schemas [failed]?
Based on your comment in .env.development.example
# Only needed when using the GitHub GraphQL API
GITHUB_TOKEN=
I assumed that this wasn't a requirement but it appears that this is required. Either way, to remove this from the mix I went ahead and created a token and provided that token in .env.development.
Note:
src/graphql.ts and ./graphql.json are never generated.
Here's the output of yarn start
yarn run v1.17.3
$ concurrently "gatsby develop" "yarn run codegen"
$ graphql-codegen --config graphql-codegen.yml
[1] [14:14:12] Parse configuration [started]
[1] [14:14:12] Parse configuration [completed]
[1] [14:14:12] Generate outputs [started]
[1] [14:14:12] Generate src/graphql.ts [started]
[1] [14:14:12] Generate ./graphql.json [started]
[1] [14:14:12] Load GraphQL schemas [started]
[1] [14:14:12] Load GraphQL schemas [started]
[1] [14:14:12] Load GraphQL schemas [failed]
[1] [14:14:12] → connect ECONNREFUSED 127.0.0.1:8000
[1] [14:14:12] Generate src/graphql.ts [failed]
[1] [14:14:12] → connect ECONNREFUSED 127.0.0.1:8000
[1] [14:14:12] Load GraphQL schemas [failed]
[1] [14:14:12] → connect ECONNREFUSED 127.0.0.1:8000
[1] [14:14:12] Generate ./graphql.json [failed]
[1] [14:14:12] → connect ECONNREFUSED 127.0.0.1:8000
[1] [14:14:12] Generate outputs [failed]
[1] Something went wrong
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[1] yarn run codegen exited with code 1
success open and validate gatsby-configs - 0.011 s
success load plugins - 0.258 s
success onPreInit - 0.004 s
success initialize cache - 0.008 s
success copy gatsby files - 0.027 s
success onPreBootstrap - 0.009 s
success source and transform nodes - 0.483 s
success building schema - 0.188 s
success createPages - 0.001 s
success createPagesStatefully - 0.053 s
success onPreExtractQueries - 0.011 s
success update schema - 0.041 s
success extract queries from components - 0.118 s
success write out requires - 0.004 s
success write out redirect data - 0.001 s
success Build manifest and related icons - 0.093 s
success onPostBootstrap - 0.099 s
⠀
info bootstrap finished - 2.940 s
⠀
success run static queries - 0.365 s — 4/4 11.11 queries/second
success run page queries - 0.016 s — 5/5 389.32 queries/second
DONE Compiled successfully in 1435ms2:14:16 PM
⠀
You can now view gatsby-starter-typescript-graphql in the browser.
⠀
http://localhost:8000/
⠀
View GraphiQL, an in-browser IDE, to explore your site's data and schema
⠀
http://localhost:8000/___graphql
⠀
Note that the development build is not optimized.
To create a production build, use npm run build
⠀
ℹ 「wdm」:
ℹ 「wdm」: Compiled successfully.
[0]
[0] 5 pages gatsby-starte
[0] r-typescript-graphql
Thanks, still trying to figure out what might be going wrong but thought I'd ask.
Metadata
Metadata
Assignees
Labels
No labels