Skip to content

require() of ES Module \node_modules\klaviyo-api\node_modules\axios\index.js not supported #53

@aen1gma

Description

@aen1gma

After installing 7.2.0 and adding the import statement - import { ApiKeySession, ProfileCreateQuery, ProfileEnum, ProfilesApi } from 'klaviyo-api', I get the following error in the compiler...

Error [ERR_REQUIRE_ESM]: require() of ES Module <my_server>\node_modules\klaviyo-api\node_modules\axios\index.js not supported.
Instead change the require of index.js in null to a dynamic import() which is available in all CommonJS modules.

Metadata

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