Graphql-playground: Playground not loading because assets are at 404

Created on 6 Jan 2018  Â·  4Comments  Â·  Source: graphql/graphql-playground

This issue pertains to the following package(s):

  • [ ] GraphQL Playground - Electron App
  • [ ] GraphQL Playground HTML
  • [ ] GraphQL Playground
  • [ ] GraphQL Playground Express Middleware
  • [ ] GraphQL Playground Hapi Middleware
  • [ ] GraphQL Playground Koa Middleware
  • [x] GraphQL Playground Lambda Middleware

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

macOS High Sierra - Version - 10.13.2 (17C88)

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

graphql-playground-middleware-lambda - 1.3.7

What is the expected behavior?

The playground when loaded from lambda with graphql-yoga as the primary dependency should work correctly, as graphql-yoga is abstracting underlying dependencies like graphql-playground-middleware-lambda, it should be opaque to the developer and load the correct playground assets.

What is the actual behavior?

An attempted serverless local deploy with npm start in this repository resolved to 404 URL for playground assets.

What steps may we take to reproduce the behavior?

Clone - https://github.com/divyenduz/graphql-serverless-deploy-example
Run

npm install
npm start

Open http://localhost:3000 and check network tab.

pasted_image_at_2018_01_06_11_21_am

arepackagmw-lambda bu2-confirmed

All 4 comments

I've just released a new version. Can you verify this is still a problem?

This should be fixed with [email protected] ✅

I can confirm that this is resolved. Thanks for the super quick turnaround.

I am having the same issue, reproduced all the steps above. Not receiving any errors on the console, but {"statusCode":404,"error":"Not Found","message":"Not Found"} on console log.

Was this page helpful?
0 / 5 - 0 ratings