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.

Unable to find #search-input using instantsearch.js and Meteor

See original GitHub issue

I am trying to use the instantsearch.js tutorial with Meteor but I have this error:

utils.js:79Uncaught Error: Container must be string or HTMLElement. Unable to find #search-box

Here is my code:

screenshot 2016-07-04 12 50 54 screenshot 2016-07-04 12 51 18

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
vvocommented, Jul 4, 2016

Is your main.js script inserted before the HTML DOM?

If so, you might want to use the https://developer.mozilla.org/en/docs/Web/Events/DOMContentLoaded

Let me know how it goes.

1reaction
yonidejenecommented, Jul 4, 2016

It works. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Algolia's instantsearch.js won't work with Meteor - help - Meteor forums
Algolia has the perfect library, instantsearch.js , for the client side but it ... Issue: Unable to find #search-input using instantsearch.js and Meteor....
Read more >
InstantSearch.js FAQ - Algolia
Find answers to common issues with InstantSearch.js. ... of different values, and it would be impossible to display them all on the UI....
Read more >
Use Algolia Docsearch index for Instantsearch.js section in ...
From what I understand, I can't have two input selectors in Docsearch, which is why I've been trying to use instantsearch. I need...
Read more >
How To Implement Search Functionality In Your Nuxt App ...
How To Implement Search Functionality In Your Nuxt App Using Algolia InstantSearch. 22 min read; CSS, Apps, Vue, Nuxt.js, JavaScript; Share on ...
Read more >
[Solved]-How can I pass props to React components conditionally ...
Can't figure out how to pass props to components when using React Router v5 and ... when trying to sync the search input...
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