#community-help

Troubleshooting Typesense-Instantsearch Adapter Version Compatibility

TLDR Steve noticed JavaScript errors when using a specific typesense-instantsearch adapter with Instantsearch.js. Jason provided support but a solution is yet to be identified.

Powered by Struct AI
Jul 12, 2022 (14 months ago)
Steve
Photo of md5-360a914ce1660f26772484c0e4e5aaef
Steve
09:00 PM
Which version of instantsearch is the typesense-instantsearch adapter supposed to work with? I can js errors when I use these two includes on a plain html page:
        <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch.production.min.js" integrity="sha256-LAGhRRdtVoD6RLo2qDQsU2mp+XVSciKRC8XPOBWmofM=" crossorigin="anonymous"></script>
        <script src=""></script>
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
09:32 PM
Hmm it should work with that combination
09:32
Jason
09:32 PM
Was there a network request made to Typesense, and did that error out as well?
Steve
Photo of md5-360a914ce1660f26772484c0e4e5aaef
Steve
09:33 PM
The network request is going through several layers before it hits typesense, so I don't think it's a typesense issue.
09:33
Steve
09:33 PM
It does generate search results though
09:33
Steve
09:33 PM
just doesn't update the page
09:34
Steve
09:34 PM
you can see the results in the network tab though
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
09:35 PM
Is the API response the same as the one that Typesense returns, or are the layers in front of Typesense changing it somehow?
Steve
Photo of md5-360a914ce1660f26772484c0e4e5aaef
Steve
09:36 PM
yes, it's passing it back verbatim
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
09:36 PM
Could you paste the json response in a gist and share it here?
Steve
Photo of md5-360a914ce1660f26772484c0e4e5aaef
Steve
09:37 PM
yep... I'll just have to blank out the content, but I'll keep the structure
09:37
Steve
09:37 PM
tyvm