-
Notifications
You must be signed in to change notification settings - Fork 34
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 import #601
Posthog import #601
Conversation
just to check silly things first
is this second emit in your code? could that be calling json stringify outside of posthog? |
fails on the following |
Are you able to check the structure that's failing? I've clearly made some bad assumption in testing this but we just lifted the function from MDN so I'm wondering if I'm fixing the wrong thing here 🤔 |
#563 (comment) hopefully this helps |
@pauldambra if that helps, in aframe, the cameraRig a-entity is a web component so that's a DOM element, it has an |
bumping this @pauldambra |
hey 👋 even if I write a test with a deeply nested structure this no longer explodes for me... but ofc you all know your application better than me... you're welcome to open a PR with a test in it or propose a really explicit structure here for me to copy I'm super happy to fix this but a little stuck on what's happening 🙈 (i'm out for a day or so, so spotty responses sorry!) |
(ah, maybe I do have a test case 🤯 -> watch this space) |
Ah, no... I think it was Jest struggling with the circular object not the size estimation 🫠 You can see added tests here https://github.com/PostHog/posthog-js/pull/1243/files#diff-a35fe723a882157b269b98f82f6c4bd7244a6989ff4c5b5796e3d2529b5fe15aR46 |
Ok I'll try to produce a test case that fails, maybe Friday or next week.
|
Since this is only happening on share, is there a way to avoid passing such an object on our end? |
If you can add It wouldn't be in the recording but it should avoid the error (very much thinking out loud 🙈) |
indeed putting the |
Should we use the integration with npm or from the index.html? I guess in index.html it's always using the latest version so that may be better? |
Stil fails with posthog-js version 1.38.3
Steps to reproduce.
npm install
npm start
share
buttonfairly confident that the new posthog code is in place because i see the text
"Circular"
from the new version of posthog