#community-help

TypeError when using Typesense with React-InstantSearch Date Range Picker

TLDR Mohan is encountering a TypeError when using Typesense with a date picker, asks for help. Jason suggests trying with Algolia.

Powered by Struct AI
Apr 07, 2023 (5 months ago)
Mohan
Photo of md5-988b12767945523a02de3d576045b76e
Mohan
07:24 AM
when trying to use this date picker
https://github.com/algolia/react-instantsearch-widget-date-range-picker

I’m getting
TypeError: this.props.contextValue.store.getState is not a function
12:21
The above error occurred in the <AlgoliaRange(f)> component:

tried with typesense-instantsearch-adapter 2.4.2 and 2.6.0
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:23 AM
Hmm does it work with Algolia and just not with Typesense?
10:23
Jason
10:23 AM
Because that error doesn’t seem like it’s specific to Typesense
Apr 08, 2023 (5 months ago)
Mohan
Photo of md5-988b12767945523a02de3d576045b76e
Mohan
04:58 AM
Hi Jason. I don’t have algolia set up to try this with.

I’ll see if I can do something on stackblitz against a demo API