Skip to content

Module '"algoliasearch/lite"' has no exported member 'SearchClient'.ts(2305) #1290

@spacecat

Description

@spacecat

Line 1:

import type { SearchClient } from 'algoliasearch/lite';

In this file:

https://github.com/algolia/autocomplete/blob/next/examples/react-instantsearch/src/components/Autocomplete.tsx

is giving me the following error:

Module '"algoliasearch/lite"' has no exported member 'SearchClient'.ts(2305)

How to fix?

I'm using the following npm packages:

"@algolia/autocomplete-js": "1.17.7",
"@algolia/autocomplete-plugin-query-suggestions": "1.17.7",
"@algolia/autocomplete-plugin-recent-searches": "1.17.7",
"@algolia/autocomplete-theme-classic": "1.17.7",
"algoliasearch": "5.15.0",
"react-instantsearch": "7.13.8",
"typescript": "5.7.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions