Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'apply') #577

Open
s1mpLyy opened this issue Apr 15, 2024 · 1 comment
Open

TypeError: Cannot read properties of undefined (reading 'apply') #577

s1mpLyy opened this issue Apr 15, 2024 · 1 comment
Labels
android Issues specific to Clarity Android SDK

Comments

@s1mpLyy
Copy link

s1mpLyy commented Apr 15, 2024

When navigating between routes this error happen
TypeError: Cannot read properties of undefined (reading 'apply')
{snip} ){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Ai[t].apply(Ai,e)},Li[Ri].v=l;t.length>0;)Li[Ri].apply(Li,t.shift())}}z {snip}

browser
: [Chrome Mobile WebView 123.0.6312]

os: Andriod 13

Sentry AI Solution :

Problem Description
The error message states: "Cannot read properties of undefined (reading 'apply')". This error occurred in the clarity.js file at line 2. The code snippet involved is a bit too long to show, but it seems to be related to calling a function Ai[t].apply(Ai,e).

Proposed Solution
To fix this issue, you'll need to ensure that the object Ai has a property t that is defined and not undefined before attempting to call the apply method on it. You can add a condition to check if Ai[t] exists before making the function call.

Here's an example of how you can modify the code to avoid the error:

if (Ai[t]) {
Ai[t].apply(Ai, e);
}

@AbdelrhmanMagdy AbdelrhmanMagdy added the android Issues specific to Clarity Android SDK label Apr 15, 2024
@vaibhavshn
Copy link

We integrated clarity in a web app and seeing this consistently in every browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Issues specific to Clarity Android SDK
Projects
None yet
Development

No branches or pull requests

3 participants