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.
5
1
1
1
May 17, 2021 (33 months ago)
John
11:02 PMJason
11:05 PMIf 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
John
11:09 PM1
John
11:10 PMJason
11:12 PMJason
11:13 PMJason
11:13 PMnpm run build
on your local machine and put the contents of the dist
folder in your web servers public directoryJohn
11:14 PMJohn
11:15 PM1
John
11:28 PM• typesense-instantsearch-adapter.min.js
• typesense-instantsearch-adapter.min.js.map
from https://github.com/typesense/typesense-instantsearch-adapter/tree/master/dist
But I was getting various errors. Would these 2 files be sufficient or not?
Jason
11:29 PMJohn
11:32 PMJohn
11:33 PMJohn
11:33 PMJohn
11:34 PMJason
11:41 PMJason
11:42 PM$ npm install
$ npm run typesenseServer
$ npm run populateTypesenseIndex
$ npm start
John
11:47 PMJason
11:49 PMThis is only supported with a bundler like parcel / webpack (npm)
Jason
11:49 PMJason
11:49 PMtypesense-instantsearch-adapter.min.js
John
11:55 PMapp.js:4 Uncaught ReferenceError: TypesenseInstantSearchAdapter is not defined
at app.js:4
Jason
11:56 PMJohn
11:56 PM<script src="typesense-instantsearch-adapter.min.js"></script>
<script type="module" src="./app.js"></script>
Jason
11:57 PMtypesense-instantsearch-adapter.min.js
is on your local machine yeah? And you see no console 404 errors for that file?John
11:59 PMJohn
11:59 PMMay 18, 2021 (33 months ago)
John
12:02 AMJohn
12:33 AMJason
12:33 AM1
Jason
12:56 AM1
John
01:00 AMJason
01:01 AMJohn
01:02 AM1
John
01:04 AM1
Jason
01:04 AM1
1
John
01:05 AMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
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
Matthew volunteered to contribute to the project using JavaScript, Typescript, Go, and PHP. Jason assigned two tasks, including Laravel integration and nest.js library. hi019 encouraged Matthew to try out the Laravel integration.