question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

editor is broken when used in create-react-app

See original GitHub issue

I’m trying to embed the GraphiQL inside existing app. Whole thing looks styled correctly, but the query editor section itself is not responding at all: it’s gray, there’s no cursor, no content and it doesn’t react to input.

I’ve tried import 'graphiql/graphiql.css', tried using react-helmet to put a style <link> dynamically, manually doing stuff like document.head.insertBefore() in wrapper’s componentDidMount() - nothing works.

It does work, however, if I put CDN link to graphiql.css directly to public/index.html which seems like a hack right now

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
helios1138commented, Sep 29, 2017

no, in my case all the parents of the wrapper already had 100% height

1reaction
asiandrummercommented, Sep 28, 2017

Also, from #462 someone also had this issue until the parent div’s height was set to 100%:

.App {
  height: 100vh;
}

Would this fix the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create React App not working - Stack Overflow
In my case, "create-react-app" was not installed. to install run this command npm install -g create-react-app. Once installation successful ...
Read more >
Troubleshooting - Create React App
Some editors like Vim and IntelliJ have a “safe write” feature that currently breaks the watcher. You will need to disable it.
Read more >
create-react-app not working ⚠️ error solved - YouTube
In this video, we will solve the error in reactjs that We no longer support global installation of Create React App. ✔️ create...
Read more >
Thinking in React
One of the many great parts of React is how it makes you think about apps as you build them. In this document,...
Read more >
Using Bootstrap with React: Tutorial with examples
Create a more detailed React app with Bootstrap. How to troubleshoot Bootstrap not working in React. If you're just getting started with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found