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.

Example won't load

See original GitHub issue

Running ELASTICSEARCH_HOST=https://@localhost:9300 npm start from example/elasticsearch results in error.

Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JasonStoltzcommented, Apr 9, 2020

Oh yes, I’m sorry. I know what the issue is here. I updated the sandbox example to fix this issue in https://github.com/elastic/search-ui/pull/469/files, but forgot to update this example.

You’d need to run these link commands before starting the project: https://github.com/elastic/search-ui/blob/master/bin/sandbox

cd packages/react-search-ui-views
npm link ../../examples/elasticsearch/node_modules/react
cd ../react-search-ui
npm link ../../examples/elasticsearch/node_modules/react
cd ../../examples/sandbox
0reactions
ivankozlovcodescommented, Apr 18, 2020

Not to be a bummer but it does not work even with the steps provided

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to Do When a Website Won't Load | PCMag
What to Do When a Website Won't Load · Check Your Connection (and Other Sites) · See if the Problem Is on Your...
Read more >
How to Fix Web Pages That Won't Load - Online Tech Tips
How to Fix Web Pages That Won't Load · Restart a Microsoft Windows PC · Restart a Mac · Disable or Remove Extensions...
Read more >
Stackblitz Example doesn't load - Syncfusion
I've tried to laod the stack bliz example for this chart but it doesn't load: https://ej2.syncfusion.com/demos/#/material/chart/candle-stick.html.
Read more >
Websites don't load - troubleshoot and fix error messages
Are you having trouble getting a website to load? This article will show you how to fix the problem so you can get...
Read more >
Code Challenge Won't Load (Example) | Treehouse Community
Code challenges are not loading properly and I am unable to do them. Every time I reach a code challenge, the files for...
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