-
Notifications
You must be signed in to change notification settings - Fork 1.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
ReferenceError: navigator is not defined #118
Comments
I somehow solved it in following hacky way.
|
Thanks for the report. I'm having trouble reproducing this. What browser are you using? |
I have the same problem. I fixed it this way: import React, { Component } from 'react';
let GraphiQL;
function graphQLFetcher(graphQLParams) { ... }
export default class Graph extends Component {
componentDidMount() {
// Hack for serverside rendering
GraphiQL = require('graphiql');
}
render() {
if (!GraphiQL) return null;
return <GraphiQL fetcher={graphQLFetcher} />;
}
} |
Bump - I am having the same issue when render it. And above alternatives doesn't seem to work.
|
acao
pushed a commit
to acao/graphiql
that referenced
this issue
Jun 1, 2019
Update flow-bin to the latest version 🚀
acao
pushed a commit
to acao/graphiql
that referenced
this issue
Jun 5, 2019
Bump version on graphql-language-server package
jgillich
added a commit
to jgillich/graphiql
that referenced
this issue
Jun 7, 2020
jgillich
added a commit
to jgillich/graphiql
that referenced
this issue
Jun 7, 2020
jgillich
added a commit
to jgillich/graphiql
that referenced
this issue
Jun 7, 2020
acao
pushed a commit
that referenced
this issue
Jun 7, 2020
thenamankumar
pushed a commit
to thenamankumar/graphiql
that referenced
this issue
Aug 30, 2020
acao
pushed a commit
that referenced
this issue
Feb 20, 2022
…17.11 Bump lodash from 4.17.10 to 4.17.11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi There,
I am trying to use GraphiQL with https://github.com/erikras/react-redux-universal-hot-example but I am getting following error:
Any ideas what can be causing this? Or how to troubleshoot this? I am running out of ideas.
The text was updated successfully, but these errors were encountered: