faro-web-sdk icon indicating copy to clipboard operation
faro-web-sdk copied to clipboard

Repeated error thrown by Faro/Web-vitals

Open abby-gourlay opened this issue 1 year ago • 0 comments

Description

We've added Faro to our react application and it's now throwing this error periodically but also on some mouse clicks and page navigations image

Working backwards it seems like this might be coming from the web-vitals library (https://github.com/GoogleChrome/web-vitals/blob/9bce28af7f25a0734093626857daeaeae10f6f65/src/lib/whenIdle.ts#L34) when the rIC variable (minifed as n3 here) is not properly set image

It does get set sometimes though so I can only assume that requestIdleCallback or setTimeout is meant to have been set somewhere within the faro SDK and it's not

Steps to reproduce

  1. Add Faro to the project
  2. Navigate to another page
  3. Review console logs

Expected behavior

No errors are thrown

Actual behavior

Errors are being logged to the console as shown above

Environment

  • SDK version: 1.8.2
  • SDK instrumentations: Web SDK
  • Device type: Desktop
  • Device name: HP Elitebook
  • OS: Windows 11
  • Browser: Chrome 126.0.6478.127 (Official Build) (64-bit)

abby-gourlay avatar Jul 16 '24 13:07 abby-gourlay