Skip to content

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

@vincenzo

Description

@vincenzo

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions