Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wildseansy opened this issue Feb 15, 2025 · 0 comments

Comments

@wildseansy
Copy link

Description

Following the latest setup steps for React Native, I get an error when initializing the liteClient.

Image

Reproduction

Follow the React Native steps

Code:

import { liteClient as algoliasearch } from "algoliasearch/lite";

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

package.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant