We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d281080 commit 1149d3aCopy full SHA for 1149d3a
packages/rrweb/src/record/mutation.ts
@@ -295,6 +295,13 @@ export default class MutationBuffer {
295
nextId = nextSibling && this.mirror.getId(nextSibling);
296
}
297
if (nextId === -1) {
298
+ // sibling not included in addedNodes, but
299
+ // no id as not yet serialized?
300
+ console.warn(
301
+ "Couldn't record new node. Couldn't find mirror id for nextSibling:",
302
+ nextSibling,
303
+ );
304
+ n = null; // don't iterate to previousSibling as we haven't successful serialized this node
305
continue;
306
307
const sn = serializeNodeWithId(n, {
0 commit comments