Skip to content

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

Open
@wildseansy

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions