Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playground 1.3.5 now requires a config file for graphql-config to be present #311

Closed
3 tasks done
vincenzo opened this issue Dec 4, 2017 · 0 comments
Closed
3 tasks done

Comments

@vincenzo
Copy link
Contributor

vincenzo commented Dec 4, 2017

This issue pertains to:

  • GraphQL Playground - Electron App
  • GraphQL Playground
  • GraphQL Playground Middleware

What OS and OS version are you experiencing the issue(s) on?

macOS High Sierra

What version of graphql-playground(-electron/-middleware) are you experience the issue(s) on?

1.3.5

What is the expected behavior?

Load without issue

What is the actual behavior?

App crashes because of...

ConfigNotFoundError: ".graphqlconfig" file is not available in the provided config directory: /Users/vincenzo/Documents/Repositories/github/yoga

What steps may we take to reproduce the behavior?

  1. Create your GraphQL server with Express and Apollo (get off the ground with graphql-yoga, if you like)
  2. Include Playground (already done for you if you chose to start with graphql-yoga)
  3. Fire up your app
  4. It will crash with an error similar to the one above

Temporary workaround

Create one of the two the config file supported, and have a simple one line setting in it. I created .graphqlconfig.yml and put the following in it:

schemaPath: schema.graphql
cgxxv pushed a commit to cgxxv/graphql-playground that referenced this issue Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants