faro-web-sdk
faro-web-sdk copied to clipboard
Repeated error thrown by Faro/Web-vitals
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
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
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
- Add Faro to the project
- Navigate to another page
- 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)