diff --git a/packages/rrweb/src/replay/index.ts b/packages/rrweb/src/replay/index.ts index 856a14c782..4df549ca34 100644 --- a/packages/rrweb/src/replay/index.ts +++ b/packages/rrweb/src/replay/index.ts @@ -1299,7 +1299,7 @@ export class Replayer { else if (d.id) ( this.virtualDom.mirror.getNode(d.id) as RRStyleElement | null - )?.rules.push(d); + )?.rules?.push(d); } else this.applyStyleSheetMutation(d); break; }