Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/react (replay)
SDK Version
7.27.0
Framework Version
React 16.14.0
Link to Sentry event
Steps to Reproduce
I upgraded sentry to 7.27.0
and added Replay
integrations. which started causing this issue.
Moreover, it appears that events for this error are happening for Android device.
Expected Result
Should not throw the error on using sentry replay. Furthermore, my application is traditional app which is using sentry for exception handling.
Here are the list of all the event happening for this issue on our application:
https://sentry.io/organizations/umai/issues/3824145610/events/30be290df3874c4bbdfa9b0aaff0030b/events/?project=5264087&referrer=replay-console%2F
Actual Result
breaks on line:
… ules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js in needMaskingText at line 264:16
breaks on line : (node.matches(maskTextSelector))
SyntaxError: Failed to execute 'matches' on 'Element': 'body *:not(style,script)' is not a valid selector.
at needMaskingText(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:264:16)
at needMaskingText(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:271:12)
at serializeNode(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:495:36)
at serializeNodeWithId(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:585:25)
at serializeNodeWithId(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:657:33)
at serializeNodeWithId(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:657:33)
at serializeNodeWithId(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:657:33)
at serializeNodeWithId(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:657:33)
at _e(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:774:11)
at ht(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb/src/record/index.js:219:21)
at record.takeFullSnapshot(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb/src/record/index.js:434:3)
at <object>.value(../node_modules/@sentry/replay/esm/replay.js:714:14)
at <object>.value(../node_modules/@sentry/replay/esm/replay.js:841:12)
at <object>.value(../node_modules/@sentry/replay/esm/replay.js:692:34)
at this.handleVisibilityChange(../node_modules/@sentry/replay/esm/replay.js:580:18)
at sentryWrapped(../node_modules/@sentry/browser/esm/helpers.js:86:17)