You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to reproduce this issue - it looks to be happening on it's own, coming from the web-vitals dependency. Going by the error message, it must be this part of the code, I presume with session entries being undefined:
consthandleEntries=(entries: LayoutShift[]): void=>{
entries.forEach(entry=>{// Only count layout shifts without recent user input.if(!entry.hadRecentInput){constfirstSessionEntry=sessionEntries[0];constlastSessionEntry=sessionEntries[sessionEntries.length-1];// If the entry occurred less than 1 second after the previous entry and// less than 5 seconds after the first entry in the session, include the// entry in the current session. Otherwise, start a new session.if(sessionValue&&entry.startTime-lastSessionEntry.startTime<1000&&entry.startTime-firstSessionEntry.startTime<5000){sessionValue+=entry.value;sessionEntries.push(entry);}else{sessionValue=entry.value;sessionEntries=[entry];}// If the current session value is larger than the current CLS value,// update CLS and the entries contributing to it.if(sessionValue>metric.value){metric.value=sessionValue;metric.entries=sessionEntries;if(report){report();}}}});};
Expected Result
I shouldn't be getting an error from this library
Actual Result
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/vue
SDK Version
7.17.2
Framework Version
Vue 3.2.40
Link to Sentry event
https://sentry.io/organizations/studio-shogun/issues/3705072282
Steps to Reproduce
Unable to reproduce this issue - it looks to be happening on it's own, coming from the web-vitals dependency. Going by the error message, it must be this part of the code, I presume with session entries being undefined:
Expected Result
I shouldn't be getting an error from this library
Actual Result
The text was updated successfully, but these errors were encountered: