rrweb icon indicating copy to clipboard operation
rrweb copied to clipboard

[Bug]: Getting this error "cannot read property on null (reading scrollTo)".

Open shanptl12 opened this issue 3 years ago • 2 comments

Preflight Checklist

  • [X] 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

Expected Behavior

iFrame.contentWindow was returning null, hence was getting the error.

this.iframe.contentWindow!.scrollTo( (firstFullsnapshot as fullSnapshotEvent).data.initialOffset, );

Actual Behavior

Null Check should be added

Testcase Gist URL

No response

Additional Information

PR was created for the issue. PR: https://github.com/rrweb-io/rrweb/pull/915

shanptl12 avatar Jun 14 '22 09:06 shanptl12

Did a mistake is writing the issue description. The expected and Actual behaviour are interchanged in the description.

PS. This issue started occurring after updating the library to version 1.1.3

shantanup12 avatar Jun 20 '22 04:06 shantanup12

Is this bug fixed?

Soulwail avatar Jul 15 '22 12:07 Soulwail

This has been fixed by #915

YunFeng0817 avatar Aug 13 '22 07:08 YunFeng0817

Screenshot from 2022-12-19 10-19-03

hi we use rrweb player we get this error.i think its not fix we use in reactjs
how could we handle this error?

js199069 avatar Dec 20 '22 07:12 js199069