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
ReadableStream issue @hono/node-server <> GraphQL Yoga #77
Comments
Hi @maoosi This is a workaround: export default createYoga({
fetchAPI: { fetch, Request, ReadableStream, Response }, // <--- Add Node.js native APIs
graphqlEndpoint: '/',
schema: createSchema({
typeDefs: /* GraphQL */ `
type Query {
hello: String
}
`,
resolvers: {
Query: {
hello: () => 'world'
}
}
})
}) |
Thanks @yusukebe, your suggested workaround is working good on my end! |
Facing the same issue with normal static assets serving. I tried removing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
Since updating to @hono/[email protected], I'm having an issue using GraphQL Yoga. The server immediately crashes with the below message:
Reproduction
I have created a minimal reproduction on https://codesandbox.io/p/sandbox/optimistic-lichterman-tvsgh8
Workaround
Rolling back to @hono/[email protected] fixes the issue.
The text was updated successfully, but these errors were encountered: