-
Notifications
You must be signed in to change notification settings - Fork 136
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
Cannot find module and when installing dependency it doesnt compile #1532
Comments
I also got same issue when I try to use latest version of posthog in my angular project. |
Same, I am also getting the same errors, I will have to revert back until this gets fixed. |
Almost every release of posthog breaks my Angular build. This one is not an exception. |
This is the second time my posthog-js has broken my angular app, I also had issues with the go lang package as well. |
Is there any workaround for this? |
I totally agree and can confirm that this is not an exception. Some try & error later I was able to find a dependency combination which seem to work.
Keeping Posthog's dependencies in own package.json is a absolute no-go and will cause more issues in future. This must be fixed. Hope this helps, @jer-tx |
It helped me, thanks! |
Based on some initial research, this issue appears have been introduced in this PR: v1.163.1 doesn't have this type issue, whereas v1.164.0 does. As an alternative workaround, users may want to consider downgrading to v1.163.1 until this is fixed. |
It worked for me too. Thanks. |
Bug Description
A few months ago i was able to add posthog to my Angular project and even had it recording sessions and such.
This was just experimental so i didn't even merge the changes (just had them locally).
Now i tried to run it and it complained about not finding rrweb/record module. I installed it and then it doesn't compile due to errors in rrdom.
The only (main) difference was that i did some minor/patch updates in the whole project. So i decided to create a blank stackblitz to check if this would still happen and it did (described below).
How to reproduce
Note: The only file besides package.json changed, was maint.ts to import posthog.
The text was updated successfully, but these errors were encountered: