Skip to content

[Bug]: Cannot instantiate new EasyPostClient in Nextjs 13 #439

Description

Software Version

7.2.0

Language Version

20.10.0

Operating System

Mac OS 13.3.1

What happened?

  1. Imported easypost-node library
  2. Attempt to create new EasyPostClient via
    const client = new EasyPostClient(process.env.EASYPOST_API_KEY!);
  3. Upon building, error is thrown that .TypeError: a is not a function
  4. After commenting out the code, the app builds fine

What was expected?

To be able to build the app while using EasyPostClient

Sample Code

const client = new EasyPostClient(process.env.EASYPOST_API_KEY!);

Relevant logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssue is being researched

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions