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

line 105 work.jsx {work.tags[0]} GIVES ME WHITE SCREEN OF DEATH #44

Open
luespinal03 opened this issue Nov 4, 2022 · 2 comments
Open

Comments

@luespinal03
Copy link

'Uncaught TypeError: Cannot read properties of undefined (reading '0')'
Screenshot 2022-11-04 at 1 15 33 AM

@luespinal03 luespinal03 changed the title line 105 {work.tags[0]} GIVES ME WHITE SCREEN OF DEATH line 105 work.jsx {work.tags[0]} GIVES ME WHITE SCREEN OF DEATH Nov 4, 2022
@JuniorRaja
Copy link

Hey @luespinal03
Make sure you have not added a blank/incomplete document in Sanity>>Works

@lucas-de-lima
Copy link

Hi @luespinal03 , that "0" that is returning undefined is probably because you need to set your localhost in API configuration in your project manager in Sanity. This happened to me recently. In my project manager, in the API configuration, only port 3000 had access to what came from Sanity but I was using port 3001, so instead of my "work" being rendered on the screen, only "0" was rendered.
If your problem is not defining localhost in the project manager settings, then the error is probably related to the "Work" section that you defined in your Sanity.

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

3 participants