janosh / svelte-algolia Goto Github PK
View Code? Open in Web Editor NEWSvelte plugin for keeping Algolia indices in sync with custom data fetching functions.
Home Page: https://janosh.github.io/svelte-algolia
License: MIT License
Svelte plugin for keeping Algolia indices in sync with custom data fetching functions.
Home Page: https://janosh.github.io/svelte-algolia
License: MIT License
Finish the work started in 2bffa7d. What's left is basically just src/lib/main.js
.
I am in the process of migrating an Algolia search build with react-instantsearch-dom
/ react components to Svelte. The README.md does not look like this library supports refinement list, pagination, and state results components.
Here are some of the documentation of the widgets that I am looking for:
Any plans to support these components in the near future?
Great work on the utility!
One question: How do I keep it open all the time?
aka I want to avoid the behaviour of needing to click on the search icon to expand it and more importantly that it stays like that when out of focus?
Hi @janosh !
It's amazing that you made this package! I however can't get it to work with SvelteKit. I made a minimal site from scratch to replicate the issue: https://github.com/kenjonespizza/svelteKit-svelte-algolia-test (I kept the .env in there to assist). the site builds without error, but errors out in Dev mode.
The Error
It's one of those SvelteKit SSR Module errors I've seen times before but can never figure out how to actually fix, since the problem seems to be with the external package. I also messed around with the Vite config options... but once again can't find one that solved this for me. Below is a log of the main issue. Also attached is an image of my terminal log incase that easier to read.
[vite] Error when evaluating SSR module /node_modules/.pnpm/[email protected]/node_modules/algoliasearch/lite.js?v=f431d156: ReferenceError: module is not defined
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.