Troubleshooting TypesenseInstantSearchAdapter without Node.js
TLDR John wanted to use TypesenseInstantSearchAdapter without Node.js. Jason helped by instructing to reference dist files directly, then fixing a bug that caused errors when doing so.
May 17, 2021 (33 months ago)
If so, you can just use the adapter standalone using the files in the dist directory. Here's a direct link to a file you can add within your script tag on the FE: https://cdn.jsdelivr.net/npm/typesense-instant[email protected]/dist/typesense-instantsearch-adapter.min.js
npm run buildon your local machine and put the contents of the
distfolder in your web servers public directory
But I was getting various errors. Would these 2 files be sufficient or not?
$ npm install $ npm run typesenseServer $ npm run populateTypesenseIndex $ npm start
This is only supported with a bundler like parcel / webpack (npm)
app.js:4 Uncaught ReferenceError: TypesenseInstantSearchAdapter is not defined
<script type="module" src="./app.js"></script>
typesense-instantsearch-adapter.min.jsis on your local machine yeah? And you see no console 404 errors for that file?
May 18, 2021 (33 months ago)
Indexed 3015 threads (79% resolved)
Issues with Typesense Frontend Search Integration
Akash experienced issues integrating Typesense into their frontend search, particularly with their search box. Jason guided them to troubleshoot, eventually identifying the issue to be with react-instantsearch-dom and suggesting a downgrade to react 17, which resolved the issue.
Issue with Typesense Instantsearch and Upgrading to React 18
Carl experienced problems updating packages for a project. VIVEK suggested disabling reactStrictMode, while Jason insisted on downgrading to React 17 due to compatibility issues. Carl eventually found a workaround.
Resolving Typesense Setup Issues with VueJS
A sought help with setting up Typesense in a CDN VueJS application. Jason guided him to adjust the initialization and provided a solution to an undefined item warning, resulting in a successful setup.
Implementing State Export Feature Using Typesense InstantSearch.js on Node.js Backend
Kyle needed help passing search state to backend for implementing an "Export" feature, while using Typesense InstantSearch. Jason provided multiple solutions including advice on using Typesense InstantSearch adapter. The issue was resolved after some iteration.
Contributing to project using JS, TS, Go and PHP