Property 'hitsPerPage' does not exist for <Configure hitsPerPage={...} />

I’m not sure what’s going on here, I seem to be following the docs correctly - this was working a week ago.

This is telling me hitsPerPage doesn’t exist - and looking through the types of PlainSearchParameters it doesn’t seem to be there.

export function InstantSearch(props: {
  indexName: string
  children: React.ReactNode
  perPage?: number
  filters?: string
}) {
  return (
    <AlgoliaInstantSearch searchClient={algolia} indexName={props.indexName}>
      <Configure hitsPerPage={props.perPage ?? 20} filters={props.filters} />
      {props.children}
    </AlgoliaInstantSearch>
  )
}

What am I doing wrong?

4 Likes