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

Unable to import PostHog in Vue, as it depends on react #1642

Open
matisiekpl opened this issue Jan 6, 2025 · 0 comments
Open

Unable to import PostHog in Vue, as it depends on react #1642

matisiekpl opened this issue Jan 6, 2025 · 0 comments

Comments

@matisiekpl
Copy link

Hello,
I want to import PostHog in Vue 3.
However, I can't build project using Vite due to following error:

Error: Build failed with 1 error:
node_modules/posthog-js/react/dist/esm/index.js:2:110: ERROR: Could not resolve "react"

This is due to following import:
CleanShot 2025-01-06 at 23 18 27

PostHog version: 1.204.0
Expected behavior: build passes successfully

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

No branches or pull requests

1 participant