-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Replay module: Cannot find module './node_modules/rrweb/es/rrweb/packages/rrweb/src/entries/all.js' #6690
Comments
Similar error with @sentry/cli^2.11.0, @sentry/nextjs^7.29.0, next^13.0.2 and yarn 3.3.1 steps to reproduce:
[webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'rrweb/es/rrweb/packages/rrweb/src/entries/all' in /Users/.../@sentry-replay-virtual-b637ba30d9/0/cache/@sentry-replay-npm-7.29.0-e553e78caf-539e18c128.zip/node_modules/@sentry/replay/cjs for build dependencies doesn't lead to expected result ... |
Hi, thanks for writing in! @maxtomczyk did Replay ever work with Nuxt apps? Just trying to find out if this is a regression or it never worked to begin with. My context around Nuxt is very limited but on the top of your head do you think this might be a problem w.r.t browser APIs (which rrweb relies on heavily) being bundled into Server stuff? @reem not sure if this is related (different framework and bundler) but let's see first before creating another issue. Did you perform a fresh install after 7.29.0 was released? If not, please try deleting your Replay is just intended to be used on the client side, so we need to make sure, that it is not bundled on the server side. |
@maxtomczyk which yarn/npm version are you using? |
Could anyone experiencing this problem with a Nuxt app point me to a minimal repro? We don't support this framework officially so I'd be interested in how you set it up. Doesn't have to be much, just how to get to the point to reproduce this error. |
@Lms24 you're right. In my case sentry code was bundled into server side code (it worked in dev mode, so I didn't think something is wrong here). Setting plugin as client side only fixed error. |
I can provide what error message shows up, I think there is something wrong with react-scripts: 4.0.3
EDIT: |
@jacklee814 I see you're using craco (TIL) so I'm guessing that you added the I don't really see a reason as to why a tool would expect a package.json for these files at this location. We're basically just pulling rrweb files into |
So to summarize the reports at this point:
At this point, I don't see an immediate action we could take without more information. To everyone experiencing this issue, please leave a comment if you can provide more information. |
Hi, I encountered similar issues recently. I use multiple Sentry packages and found the I'm unsure if the |
Yes, we do not treat In contrast, tslib in core should be treated like a normal dependency, so I think it's okay that it has a
I'm considering investigating this but by default, rollup just pulls it in under |
We think we've fixed this issue with #6817. This fix will be included in the next release which will happen in the coming days. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/vue
SDK Version
7.29.0
Framework Version
Nuxt 3.0.0
Link to Sentry event
No response
Steps to Reproduce
Expected Result
Sentry is working and Nuxt renders webpage
Actual Result
Nuxt responds with 500 status code.
Logs:
This bug is mentioned in #6553, but I'm not sure if it's tracked as issue is closed and bug still appears in latest release.
The text was updated successfully, but these errors were encountered: