Skip to content

[Unified SDK] TypeError: Identify is not a constructor #1124

Open
@reginokaa

Description

@reginokaa

Expected Behavior

Identify class should be available for identify event

Current Behavior

when I use new Identify().set, as the documentation suggests, I'm getting an error that the class isn't a constructor. as a workaround, I imported Identify from 'amplitude/analytics-core', but I guess this is not the correct way

Possible Solution

inside index.d.ts file, export the mentioned class (like in index.d.ts from analytics-browser)

Steps to Reproduce

Image

Image

Image

Environment

  • JS SDK Version: 1.0.0-beta.2
  • Installation Method: npm
  • Browser and Version: Chrome 137

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions