Issue Explanation
I'm encountering an error when trying to fetch a list of products using the provided code. Anytime I attempt to load a dynamic route called [product].js
, I receive an error message. It's puzzling because I have similar setups for two other dynamic routes, [photos].js
and [slug].js
, and they work perfectly fine. I even tried copying the working code from those pages and replacing references to album
or post
with product
, but it didn't solve the issue.
I have verified my Groq queries in the Sanity Studio vision and confirmed that they are returning the necessary data.
Your assistance in resolving this matter would be highly appreciated. Thank you, Mac.
Code Snippet:
[product].js
...
Full Error Details
APPLICATION ERROR: A CLIENT-SIDE EXCEPTION HAS OCCURRED (SEE THE BROWSER CONSOLE FOR MORE INFORMATION).
Browser Console Message
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (logo-tote-bag, line 0)