amplitude / amplitude/Amplitude-TypeScript
[Unified SDK] TypeError: Identify is not a constructor
- Linguagem predominante
- TypeScript
- Estrelas
- 180
- Forks
- 68
- Merge médio
- 3d 1h
- PRs com merge (30d)
- 29
Descrição
#
## 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
1.

2.

3.

## Environment
- JS SDK Version: 1.0.0-beta.2
- Installation Method: npm
- Browser and Version: Chrome 137
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.