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

Runtime Error on Product UI Page #29

Open
tommyready opened this issue Jan 7, 2022 · 2 comments
Open

Runtime Error on Product UI Page #29

tommyready opened this issue Jan 7, 2022 · 2 comments

Comments

@tommyready
Copy link

Main page loads fine, I can see my product grid but when navigating to a product I get the following error:

Unhandled Runtime Error
TypeError: Cannot read properties of undefined (reading 'id')

Any help would be great because debugging this is a nightmare. I assumed it couldn't read product.id but I ran the query in the playground and I see the ID is returned in the response.

@tommyready
Copy link
Author

FYI: this error only happens on newly added products to graphCMS. The ones from the template work just fine.

@sorokinvj
Copy link

in my case its because this:
Screenshot 2022-07-16 at 14 53 38

I am not sure if variant is something all the products need? could it be that there are no variants of the product? I guess then activeVariantId = product.id?

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