Issue with TypesenseInstantSearchAdapter after Angular Update
TLDR Ivan reports an error with TypesenseInstantSearchAdapter after updating to Angular 15. Jason suggests creating a minimal replicate project for further investigation.
Dec 01, 2022 (10 months ago)
ERROR TypeError: typesense_instantsearch_adapter__WEBPACK_IMPORTED_MODULE_2__ is not a constructor
I didn't change anything, so syntax like you provided in example:
import TypesenseInstantSearchAdapter from 'typesense-instantsearch-adapter';
const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter(options)
Found familiar github issue, but there no answers
Are you able to share a minimal project that I can use to replicate the issue and then test any potential fixes?
Indexed 2764 threads (79% resolved)
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.
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.
Troubleshooting TypesenseInstantSearchAdapter without Node.js
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.