Skip to content

[bug]: TypeError: algoliasearch is not a function #1558

@AdamBCo

Description

@AdamBCo

Description

When I include the following code in a .js file, I get the following RESULT

const algoliasearch = require("algoliasearch");
const algoliaClient = algoliasearch(
  process.env.ALGOLIA_APP_ID,
  process.env.ALGOLIA_APP_SECRET,
);

RESULT:
TypeError: algoliasearch is not a function

Client

All

Version

5.7.0

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions