You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Means that Replay cannot be used in Electron renderers when nodeIntegration is enabled as process is defined. This has not been the default config for a couple of years and it's not recommended but it's still used a lot in real world applications.
Expected Result
Replay should work in Electron renderers
Actual Result
Doesn't work
Is this check required? What is it trying to protect against?
The text was updated successfully, but these errors were encountered:
Basically, the idea of this check is to ensure we do not run replay when running in non-browser environments, e.g. node (especially e.g. Next.js or similar envs). As replay relies on a lot of DOM etc. stuff.
I would be a bit hesistant to change this as it could lead to a bunch of other errors. We could also just check for existence of window, which may be good enough, but may also let some other stuff slip through I guess.
mydea
changed the title
isBrowser checks stop replay from starting in Electron renderers when node integration is enabled
Allow to capture replays for Electron when node integration is enabled
Jan 4, 2023
Uh oh!
There was an error while loading. Please reload this page.
Which package are you using?
@sentry/electron
SDK Version
master
Steps to Reproduce
Ref: getsentry/sentry-electron#606 (comment)
This code:
sentry-javascript/packages/replay/src/integration.ts
Lines 138 to 141 in 36488ec
Means that Replay cannot be used in Electron renderers when
nodeIntegration
is enabled asprocess
is defined. This has not been the default config for a couple of years and it's not recommended but it's still used a lot in real world applications.Expected Result
Replay should work in Electron renderers
Actual Result
Doesn't work
Is this check required? What is it trying to protect against?
The text was updated successfully, but these errors were encountered: