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

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'id') #40

Open
MatthewAry opened this issue Jun 20, 2024 · 1 comment

Comments

@MatthewAry
Copy link

Just trying to use Marker and the API and I got this error. It shows up on page load intermittently suggesting its possibly some kind of async race condition.

image
image

I'm tracking this back to when I try to call setReporter and I think that I am calling setReporter in my state manager before the Marker Widget is ready for me to call it. Yet, the error is getting emitted for Marker's code so the fix should be on your end.

As for writing code to check if setReporter is safe for me to call; I don't want to, and shouldn't have to wrap a call to setReporter in an marker's on event handler method because that is not an acceptable workaround for bunch of reasons that I don't want to get into.

Thank you!

@Sj0nni
Copy link

Sj0nni commented Aug 21, 2024

I have the same issue. Any news about this?

4.v2.12.0.5ad2def….js:1 Uncaught (in promise) 
TypeError: Cannot read properties of null (reading 'id')
    at f.updateAnonymousUserAttributes (4.v2.12.0.5ad2defefb…2eab5ba3.js:1:91450)
    at Array.<anonymous> (3.v2.12.0.ce4fa6c….js:1:6111)
    at f.dispatch (3.v2.12.0.ce4fa6c….js:7:1047)
    at f.dispatch (3.v2.12.0.ce4fa6c….js:1:3342)
    at Object.setReporter (4.v2.12.0.5ad2defefb…2eab5ba3.js:1:19680)
    ```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants