Closed spicerm closed 6 years ago
Just importing aws-appsync causes this error in SSR, one of the module it depends on uses window somewhere which causes this error.
This is a common Node problem; it's not an issue with ReactQL, per se. There's simply no concept of window on the server.
window
To work around it: https://reactql.org/docs/ssr/environment#the-server-constant
Just importing aws-appsync causes this error in SSR, one of the module it depends on uses window somewhere which causes this error.