β‘οΈ Libraries for building performant and instant search and recommend experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.
I thought I would build a vanilla JS app to see how instant search works against an existing index in my Alogia instance with a view to building something that might work as a web component with shadowdom etc.
I'm following the documentation in here in the repo and on the Algolia website for creating a new instantsearch app.
I have created a config.json with the following config with all my details populated:
Removed the CSS and replaced it with the CSS described in the same link.
Opened the browser, didn't see any search option. Went to browser Dev tools and saw:
Error: Container must be `string` or `HTMLElement`. Unable to find #hierarchical_categories.lvl0-list
at N (instantsearch.js@4.73.2:2:12434)
at instantsearch.js@4.73.2:2:290219
at app.js:45:42
π Current behavior
I thought I would build a vanilla JS app to see how instant search works against an existing index in my Alogia instance with a view to building something that might work as a web component with shadowdom etc.
I'm following the documentation in here in the repo and on the Algolia website for creating a new instantsearch app.
I have created a config.json with the following config with all my details populated:
I remove
"libraryVersion": "",
so the latest would be installedI ran the CLI
npx create-instantsearch-app unspsc-search --config config.json
The app was created, I then edited the index.html and removed the content with class="header" as described here https://www.algolia.com/doc/guides/building-search-ui/getting-started/js/#add-the-search-ui-code
Removed the CSS and replaced it with the CSS described in the same link.
Opened the browser, didn't see any search option. Went to browser Dev tools and saw:
π Steps to reproduce
Live reproduction
n/a
π Expected behavior
I expect a simple JavaScript based search app using my Algolia index.
Package version
create-instantsearch-app
Operating system
Ubuntu in WSL2
Browser
Any
Code of Conduct