-
-
Notifications
You must be signed in to change notification settings - Fork 58
Electron preload fails to load after upgrading to 4.2.0 #637
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
Comments
Thank you for reporting this. It sounds related to a recent change in dependencies for the session reply features but this wasn't picked up by any of our existing integration tests. Do you have a simple project that reproduces the above error? |
This comment was marked as outdated.
This comment was marked as outdated.
I have the same error. Upgrading from "@sentry/electron": "4.1.0" to "@sentry/electron": "4.2.0" gives this error: Error: Cannot find module './node_modules/rrweb/es/rrweb/packages/rrweb/src/entries/all.js' Note - this only happens when the app is packaged with electron-builder. When running locally on dev everything seems to work. I've only tried on macOS. |
@andymartinwork can you provide more details to help me reproduce this? What version of A basic repository demonstrating the issue is most helpful! |
This happens with electron-builder 23.6.0. When the application is packaged the rrweb package is not in the node_modules folder within the asar. Not sure but it may be related to the fact that rrweb is a dev dependency for the @sentry/replay package. I can try creating a repository to recreate the issue later if no one else does. |
Thanks @phillipCouto. I just checked |
Awesome! Looking forward to testing it once it is released. For now I will keep my version at 4.1.2 |
v4.3.0 has been released. Let us know if the issue is fixed! |
I got pulled into other things at work after reporting this, but thanks all for jumping on this and the fix - v4.3.0 is working great for us! |
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Electron SDK Version
4.2.0
Electron Version
19.1.9
What platform are you using?
None
Link to Sentry event
No response
Steps to Reproduce
After upgrading
@sentry/electron
from4.2.1
to4.2.0
, nothing loads into the ElectronBrowserWindow
s (they are white rectangles).Devtools indicates an issue loading preload scripts because it can't find the
rrweb
module required by@sentry/replay
.Expected Result
Electron preloads (and Sentry) load.
Actual Result
Renderer process console output:
The text was updated successfully, but these errors were encountered: