Open Mat-moran opened 9 months ago
Not a solution, but a very ugly workaround I found that might help for now:
import TypesenseInstantSearchAdapterExport from "typesense-instantsearch-adapter";
const TypesenseInstantSearchAdapter =
TypesenseInstantSearchAdapterExport.default ??
TypesenseInstantSearchAdapterExport;
Thanks you so much, it seems to work.
Let's see if I can make something! 😄
Can we please get a proper fix for this
Would like a full fix for this, but I worked around it using https://github.com/cyco130/vite-plugin-cjs-interop
Description
Hi, when I try to run a page with the react example in a remix route it launches an error
I think it is related with CJS/ESM
Steps to reproduce
Create a new Remix Vite app:
npx create-remix@latest --template remix-run/remix/templates/vite
In the index route for example copy the React example codeExpected Behavior
Actual Behavior
The application is broken
Metadata
Typesense Version: Latest
OS: MacOS
Remix v2.8 Vite