Closed goodok21 closed 4 years ago
I think it's because when Next.js does a static HTML export there is no server running, and the req
and res
in getInitialProps
context is missing:
https://github.com/jaydenseric/next-graphql-react/blob/v6.0.1/src/universal/withGraphQLApp.mjs#L139
Probably the code should first check if res
exists in the context before attempting to read from it.
I might be able to get some time in the next few days to add support for static HTML export, we'll see :)
Thanks for your patience, the fix has been published 🎉
Hey! When I'm trying to run
yarn export
, got error:it's stuck in
Exporting
. Can anybody share example?