John Doisneau
05/26/2021, 4:49 PMuniq.ts:2 Uncaught TypeError: Cannot read property 'indexOf' of undefined
at uniq.ts:2
at prototype.js:884
at prototype.js:825
at Array.forEach (<anonymous>)
at Array.each (prototype.js:824)
at Array.findAll (prototype.js:883)
at le (uniq.ts:2)
at prepareTemplateProps.ts:26
at he (prepareTemplateProps.ts:60)
at hits.tsx:42
Nick Kamer
05/26/2021, 5:11 PMJohn Doisneau
05/26/2021, 10:27 PMJason Bosco
05/26/2021, 11:02 PMArray.filter
function and the modern JS implementation of it takes 3 parameters.
However, Prototype.js redefines Array.filter
globally as it's own 2-argument function and that causes InstantSearch.js to error out.
Not sure if this is helpful, but may be something like this might help prevent prototype polluting the global Array object: http://perrymitchell.net/article/stop-polluting-my-prototypes/John Doisneau
05/26/2021, 11:15 PMJason Bosco
05/26/2021, 11:19 PM