rrweb: Node with id 'xxx' not found in [object]
我的代码
export function initWebReplay () {
console.log('initWebReplay');
const instance = require('rrweb');
instance.record({
emit (event, isCheckout) {
if (isCheckout) {
eventsMatrix.push({
id: eventsMatrix[eventsMatrix.length - 1].id + 1,
events: []
});
}
eventsMatrix[eventsMatrix.length - 1].events.push(event);
},
checkoutEveryNms: 60 * 1000
});
// 定时清除冗余的数据
setInterval(() => {
while (eventsMatrix.length > 4) {
eventsMatrix.shift();
}
}, 5000);
}
使用了checkoutEveryNms,在回放时出现了Node with id ‘xxx’ not found in [object] 警告,但是播放看着没什么问题

About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (7 by maintainers)
inlineStylesheet:true