PostHog / posthog-js

Send usage data from your web app or site to PostHog, with autocapture.
https://posthog.com/docs/libraries/js
Other
278 stars 114 forks source link

Cannot read properties of undefined (reading 'onLCP') #1412

Closed yoni-noma closed 1 week ago

yoni-noma commented 2 weeks ago

Bug Description

Im getting lots of this error, not sure if its impacting the user experience.

Additional context

my project is a Remix project, initiating posthog on the root->App component

Debug info

Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/0191dff6-69e3-7e3e-aa7e-6383a3dd3e7d?t=0
Admin: http://go/adminOrgUS/0191d1cd-cd06-0000-dbc1-4ad44b390154 (project ID 89869)
Sentry: http://go/sentryUS/89869
pauldambra commented 2 weeks ago

Hey 👋

What version of posthog-js are you using?

Is the site public for us to take a look?

abigailbramble commented 2 weeks ago

+1 https://posthoghelp.zendesk.com/agent/tickets/17947 +1 https://posthoghelp.zendesk.com/agent/tickets/18020 +1 https://posthoghelp.zendesk.com/agent/tickets/18023

pauldambra commented 2 weeks ago

Ah, no I think I see what's happened here... Let me see if I can resolve this on our side.

Will update shortly

pauldambra commented 2 weeks ago

I believe this is resolved now!

rvanlaarhoven commented 1 week ago

Yes, seems to be resolved on my end at least. Haven't seen the error since a couple days now.

pauldambra commented 1 week ago

Amazing, thanks for confirming