Skip to content

ERROR [Statsig] Error starting web vitals tracking TypeError: (0 , web_vitals_1.onCLS) is not a function #40

@john-4t-titan

Description

@john-4t-titan

Description

we have a react project (still using create-react-app)

relevant packages:

  • "web-vitals": "^5.1.0",
  • "@statsig/react-bindings": "^3.30.1"
  • "@statsig/web-analytics": "^3.30.1"

in my client setup for statsig i have:

import { StatsigAutoCapturePlugin } from '@statsig/web-analytics'

const { client, isLoading } = useClientAsyncInit(
    <api_key>,
    <client_data>,
    {
      plugins: [new StatsigAutoCapturePlugin()]
    }
  )

tried removing the web-vitals imports/implementations in the code. still nothing.

any help would be greatly appreciated. perhaps we're doing something wrong. i see the similar issue was closed for lack of response from the author.

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