graphql-kit / graphql-voyager

🛰️ Represent any GraphQL API as an interactive graph
https://graphql-kit.com/graphql-voyager/
MIT License
7.69k stars 504 forks source link

Middleware HTML broken in version 2.0.0 #356

Closed ViggoV closed 10 months ago

ViggoV commented 10 months ago

The HTML returned when using the middleware (in my case express) fails to run properly in the browser, and gets stuck on "Loading..." due to various issues. It works when downgrading to version 1.3.0

First it complains about the await keyword, which is used in a non-async function and only for response.json() and not the fetch() itself. After fixing these issues it complains that GraphQLVoyager.init() is not a function