Skip to content

Typescript/ESM issue #54

Description

@0xNoWater

Hey folks, I have a project I just migrated to ESM and the the statsig client is giving me some trouble.

I put together a small sample project to demonstrate the issue I'm having: https://github.com/ethos-seth/statsig-esm-demo

It shows import two approaches:

  1. Default imports
  2. Named imports

Each fails in their own way.

I suspect it might have something to do with:

module.exports = { default: Statsig as Statsig, ...Statsig };

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