PostHog / posthog-js

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

I can't use posthog-js/react in Astro #627

Open JLarky opened 1 year ago

JLarky commented 1 year ago

Hi. I created this issue on Astro end, but just in case you can change something in your build pipeline, I wanted to link to that issue here as well. The issue has stackblitz where you can run "npm run build" in the terminal and see that it fails to build

https://github.com/withastro/astro/issues/7072

I had a similar issue before but I was able to use this workaround https://twitter.com/ParasocialFix/status/1654728058782486528

JLarky commented 1 year ago

ball is in your court guys 👍

image
pauldambra commented 1 month ago

the publint web site is pretty cool https://publint.dev/posthog-js@1.146.1

pauldambra commented 1 month ago

also see https://github.com/PostHog/posthog-js/issues/908