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

Cannot find module and when installing dependency it doesnt compile #1532

Open
raquelsrocha opened this issue Nov 18, 2024 · 0 comments
Open

Comments

@raquelsrocha
Copy link

raquelsrocha commented Nov 18, 2024

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

  • Stackblitz with Angular base project with just "posthog-js" added : https://stackblitz.com/edit/stackblitz-starters-dgyh5r?file=package.json
  • Run "npm install && npm start"
  • You will get the error "Cannot find module" regarding @rrweb/record and @rrweb/types
  • If you install both (as dev dependencies) then you get "cannot find "errors in rrdom/dist and rrweb/dist files.

Note: The only file besides package.json changed, was maint.ts to import posthog.

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