-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
SSR with connectToDevTools enabled breaks app in NextJS #7453
Comments
benjamn
added a commit
that referenced
this issue
Dec 10, 2020
Since this message is promotional, I did not feel comfortable using invariant.warn, but our default log level of "warn" would have hidden the message unless setLogVerbosity("log") was called. Since this is the only use of invariant.log in the codebase, I believe it's acceptable to lower the default verbosity level to "log" to allow this particular message to be displayed (otherwise, invariant.log messages are effectively useless). Fixes #7447 and #7453, since React Native polyfills the console object without providing a console.debug method.
benjamn
added a commit
that referenced
this issue
Dec 11, 2020
Since this message is promotional, I did not feel comfortable using invariant.warn, but our default log level of "warn" would have hidden the message unless setLogVerbosity("log") was called. Since this is the only use of invariant.log in the codebase, I believe it's acceptable to lower the default verbosity level to "log" to allow this particular message to be displayed (otherwise, invariant.log messages are effectively useless). You can use setLogVerbosity("warn") to exclude these invariant.log messages if you like. Fixes #7447 and #7453, since React Native polyfills the console object without providing a console.debug method.
@krisgardiner This should be fixed in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Intended outcome:
NextJS app should run server-side with
connectToDevTools
enabled.Actual outcome:
NextJS app breaks server-side when
connectToDevTools
is enabled.How to reproduce the issue:
@apollo/client
andnext-with-apollo
ApolloClient
, make sure options withssrMode: true
andconnectToDevTools: true
ReferenceError: window is not defined
Versions
The text was updated successfully, but these errors were encountered: