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

Slug.js file TypeError: Cannot destructure property 'image' of 'product' as it is null. #36

Closed
EARider23 opened this issue Jun 10, 2022 · 11 comments

Comments

@EARider23
Copy link

slug js error

@EARider23
Copy link
Author

i dont know how to fix this issue pls clarify me

@AM-Darshan
Copy link

when does this error occur?

@EARider23
Copy link
Author

EARider23 commented Jun 11, 2022 via email

@EARider23
Copy link
Author

EARider23 commented Jun 13, 2022 via email

@AM-Darshan
Copy link

Bro i Again Face That 'Image' and 'product' has destructive property When i click hero banner Shop Now Button.... Before i add that product In Sanity Product page.. after i add that same product at end of the web complete checked same error msg showing what to do..? I dono how fix that.

On Sat, Jun 11, 2022, 9:01 PM EARider @.> wrote: Now Works Fine Bro Thanks For Reply me. ❤️ On Sat, Jun 11, 2022, 2:50 PM AM Darshan @.> wrote: > when does this error occur? > > — > Reply to this email directly, view it on GitHub > <#36 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AQKR5AHFRGACQOSCXIOW2FTVORK6BANCNFSM5YNJNLPA > . > You are receiving this because you authored the thread.Message ID: > @.***> >

Ig the slug generated after clicking the shop now button isn't there as product in your sanity database.
Hence u have to provide a slug in banner->product-> on ur sanity database which matches with the already existing product's slug .

@EARider23
Copy link
Author

EARider23 commented Jun 13, 2022 via email

@EARider23
Copy link
Author

EARider23 commented Jun 13, 2022 via email

@EARider23
Copy link
Author

EARider23 commented Jun 13, 2022 via email

@vaniadimova
Copy link

I am getting the same error, how did you fix it? Couldn't see in here. Please help!

@EARider23
Copy link
Author

I am getting the same error, how did you fix it? Couldn't see in here. Please help!

Change Banner-product name into same product name genarate in slug as like it iswill work....

@vaniadimova
Copy link

Thank you, it worked...

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