adrianhajdin / ecommerce_sanity_stripe

Modern Full Stack ECommerce Application with Stripe
https://jsmastery.pro
2.19k stars 675 forks source link

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

Closed EARider23 closed 2 years ago

EARider23 commented 2 years ago

slug js error

EARider23 commented 2 years ago

i dont know how to fix this issue pls clarify me

AM-Darshan commented 2 years ago

when does this error occur?

EARider23 commented 2 years ago

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 https://github.com/adrianhajdin/ecommerce_sanity_stripe/issues/36#issuecomment-1152887857, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKR5AHFRGACQOSCXIOW2FTVORK6BANCNFSM5YNJNLPA . You are receiving this because you authored the thread.Message ID: @.***>

EARider23 commented 2 years ago

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 https://github.com/adrianhajdin/ecommerce_sanity_stripe/issues/36#issuecomment-1152887857, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKR5AHFRGACQOSCXIOW2FTVORK6BANCNFSM5YNJNLPA . You are receiving this because you authored the thread.Message ID: @.***>

AM-Darshan commented 2 years ago

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 commented 2 years ago

There Is No Slug Name in Banner I Give same name of product in product sanity to banner product sanity...

On Mon, Jun 13, 2022, 10:50 AM AM Darshan @.***> wrote:

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. … <#m7758800756012132153> 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) https://github.com/adrianhajdin/ecommerce_sanity_stripe/issues/36#issuecomment-1152887857>,

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 .

— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/ecommerce_sanity_stripe/issues/36#issuecomment-1153484062, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKR5AFKQKC6XNEAYMCU44LVO3AI3ANCNFSM5YNJNLPA . You are receiving this because you authored the thread.Message ID: @.***>

EARider23 commented 2 years ago

I Mentioned my github link below check out error... https://github.com/EARider23/mooral_snacks_ecommers

On Mon, Jun 13, 2022, 1:49 PM EARider @.***> wrote:

There Is No Slug Name in Banner I Give same name of product in product sanity to banner product sanity...

On Mon, Jun 13, 2022, 10:50 AM AM Darshan @.***> wrote:

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. … <#m_-7078154614775695514_m7758800756012132153> 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) https://github.com/adrianhajdin/ecommerce_sanity_stripe/issues/36#issuecomment-1152887857>,

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 .

— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/ecommerce_sanity_stripe/issues/36#issuecomment-1153484062, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKR5AFKQKC6XNEAYMCU44LVO3AI3ANCNFSM5YNJNLPA . You are receiving this because you authored the thread.Message ID: @.***>

EARider23 commented 2 years ago

Hey Bro Thanks Its Worked. Muruku changed to muruku its worked. I Have more doubts to clarify how can i contact you? Is there any social media you active? Your Videos are awesome Keep Doing. ❤️

My doubt is if i update my ui of website or add something ui things on this Website is there any reflect on backend? How can i customize this website without affecting backend? More things i want to add to this website like logos, animation, progressive achivement, & more payment integration like COD, Gpay, and more cryto types payment i dono how to do thats all it will affect my backend. I am not sure can you clarify me?

Message ID: <adrianhajdin/ecommerce_sanity_stripe/issues/36/1153629537@ github.com>

vaniadimova commented 2 years ago

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

EARider23 commented 2 years ago

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 commented 2 years ago

Thank you, it worked...