-
Notifications
You must be signed in to change notification settings - Fork 0
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 null (reading 'name') at Activity.svelte:9:16` #1
Comments
Hmm, I can't reproduce that. 🤔 From the error message it sounds like it's not getting any data from Sanity, i.e.
Not sure how or why that might be... Do you see anything in the network tab of your browser, i.e. is there some HTTP request that is not 200 OK? |
The page is always visible in the browser so I first didn't notice the error. Ah! Via the network tab I get Hehe, sneaky little favicon. The favicon is referenced in the head, so there we have it. However, the favicon is visible in the browser tab, so it can be found... hmm. The error only occurs (in the terminal) when I click on an activity on the start page and go to the activity page. It does not occur when I reload the activity page. If I comment out the favicon request there is no error. The full error It could be the same as but they say
Maybe we send this problem to our future selves? Maybe we want the favicon(s) served via Sanity CDN. |
That's some good digging! For me the favicon shows up in the browser and I don't see any error. |
Okidoki 😄 |
This error is thrown in the terminal (the svelte process):
TypeError: Cannot read properties of null (reading 'name') at Activity.svelte:9:16
the line in question
Tried to comment out the line and also restart the process but it still indicates an error there (how can it be?). Not sure how
<svelte:head>
works, should Activity be initiated/called there as well, as the one below<Activity {activity} />
?The text was updated successfully, but these errors were encountered: