[Bug]: Node with id "xxx" not found
wqcstrong opened this issue · comments
Blucas commented
Preflight Checklist
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
What package is this bug report for?
rrweb-player
Version
1.0.0-alpha.4
Expected Behavior
正常回放
Actual Behavior
录制的数据在回放过程从头到尾白屏、控制台打印 "Node with id 'xxx' not found"
Steps to Reproduce
出现问题的离线文件:
2024_2_1 12_40_46.json
- 访问 https://test.jikejishu.com/#/room-list;
- 点击筛选表单下方最右边「日志回放」按钮;
- 选择上面的离线文件;
- 在新窗口中,点击底部的播放按钮;
- 播放过程中会出现 「Actual Behavior」 所描述的情况;
- 数据用 fflate 压缩过(不是直接用的
rrweb.pack
,是我在组装好数据后自行使用 fflate 压缩),查看原始数据可以打开控制台复制、粘贴以下代码,并执行;
const { strToU8, unzlibSync, strFromU8 } = await import("https://cdn.jsdelivr.net/npm/fflate/+esm")
const unpack = (data) => JSON.parse(strFromU8(unzlibSync(strToU8(data, true))))
blob = location.href.match(/url=(.*)#/)[1]
data = await (await fetch(blob)).json();
rrweb_events = data
.filter(i => i.type === 'rrweb-event')
.map(i => unpack(i.data));
Testcase Gist URL
No response
Additional Information
出现这个警告是因为丢失了第一次的全量快照吗?还是什么别的原因
Blucas commented
@Yuyz0112 @YunFeng0817 请帮忙看下
liuyongjian commented
用2.0.0试试呢 ,我之前遇到过类似问题,升级一下就好了。
Blucas commented
用2.0.0试试呢 ,我之前遇到过类似问题,升级一下就好了。
刚刚换成 rrweb-player@2.0.0-alpha.11
,依旧白屏
Blucas commented
基本可以确定是因为缺少了全量快照导致