-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Error on Slug.js #20
Comments
The error you are getting appears to be stemming from the Product.jsx file within the components folder, not the [slug].js file. What does your Product.jsx look like? |
here, the home page works fine but when i click any product this error pops up |
No, the error is on slug page. I can't see above params: on the first screenshot, but it says you're missing a , |
Line 23 should say: https://codefile.io/f/O2jutdM2wO62ZiApBPcT |
thankyou so much but after clearing that I got this error.kindly help me :(. Again Thanks in advance:) |
That's great! slug: product.slug.current |
I am stuck on TypeError: Cannot destructure property 'image' of 'product' as it is null. clicking on the button /// when clicking on the product it works ... my brain got scrambled pls help, pretty please. export const getStaticPaths = async () => { return { export const getStaticProps = async ({ params: { slug }}) => { const productsQuery = '*[_type == "product"]' return { |
Hi, I'm getting this issue after running slug.js. I'm currently at 1:28:00min in the video. Kindly Help me to fix this error
The text was updated successfully, but these errors were encountered: