Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PostHog.js] you should provide an _initialized_ client to PostHogProvider #1802

Closed
jperezr21 opened this issue Mar 7, 2025 · 1 comment · Fixed by #1803
Closed

[PostHog.js] you should provide an _initialized_ client to PostHogProvider #1802

jperezr21 opened this issue Mar 7, 2025 · 1 comment · Fixed by #1803

Comments

@jperezr21
Copy link

          This change is throwing `[PostHog.js] you should provide an _initialized_ client to PostHogProvider` warning in my next js app. According to the [docs](https://posthog.com/docs/libraries/next-js), `posthog.init` is called from `useEffect` which means it won't be initialized on the server side.

Originally posted by @abemelek in #1795 (comment)

@rafaeelaudibert
Copy link
Member

Hey @jperezr21 you're right. We're deploying a new version removing that log message completely, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants