Skip to content

Type mismatch when using @segment/analytics-next #1683

Open
@jurajmajerik

Description

When using the latest @segment/analytics-next, passing window.analytics to segment in posthog-js triggers type errors. Our segment config currently expects the older Segment interface SegmentAnalytics. We should update posthog-js to accept the latest type AnalyticsSnippet.

Internal ticket: https://posthoghelp.zendesk.com/agent/tickets/23120

Metadata

Assignees

No one assigned

    Labels

    SDK SupportGeneral SDK issues rather than being related to a feature team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions