algolia / algolia/autocomplete

Following latest React Native setup steps, crashes with "_clientCommon.createNullLogger is not a function (it is undefined)" from browser.js

Open
#1,304 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.3k
Forks
341
Avg merge
3d 1h
Merged PRs (30d)
5

Description

## Description

[Following the latest setup steps](https://www.algolia.com/doc/guides/building-search-ui/installation/react/?client=React+Native) for React Native, I get an error when initializing the `liteClient`.

Image

## Reproduction
Follow the React Native steps

Code:
```typescript
import { liteClient as algoliasearch } from "algoliasearch/lite";

const searchClient = algoliasearch(ALGOLIA_CONFIG.appId, ALGOLIA_CONFIG.token);
```

package.json
```json
{
"react": "18.2.0",
"react-instantsearch-core": "^7.15.3",
"react-native": "0.74.5",
"algoliasearch": "^5.20.2",
"expo": "~51.0.38"
}
```

If I reduce the algoliasearch version to `4.24.0` and change to not import from the lite client, it works.

Contributor guide

Open the contributing guide

Research direction

Reproduce the crash using the linked React Native setup and the versions listed in package.json, starting with the liteClient initialization. Trace the failure from browser.js and verify that the documented import and initialization complete without the createNullLogger error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.