vuestorefront-community / vendure

Vue Storefront 2 integration for Vendure
https://docs.vuestorefront.io/vendure/
MIT License
72 stars 51 forks source link

"Invalid prop: type check failed for prop "src". Expected String, got Undefined" [Bug]: #229

Open anikghosh256 opened 2 years ago

anikghosh256 commented 2 years ago

Expected Behavior

It should not be there.

Actual Behavior

It is showing error on the console. Invalid prop: type check failed for prop "src". Expected String, got Undefined

Possible Solution

No response

Steps to reproduce

set enableZoom to true.

<SfGallery :enableZoom="true" :images="productGallery" class="product__gallery" />

What version of vendure integration are you using?

1.2.0

What version of Node.js are you using?

v16.15.1

What browser (and version) are you using?

Chrome - Version 102.0.5005.63 (Official Build) (64-bit)

What operating system (and version) are you using?

Windows

Relevant log output

vue.runtime.esm.js?2b0e:619 [Vue warn]: Invalid prop: type check failed for prop "src". Expected String, got Undefined 

found in

---> <SfImage> at node_modules/@storefront-ui/vue/src/components/atoms/SfImage/SfImage.vue
       <SfGallery> at node_modules/@storefront-ui/vue/src/components/molecules/SfGallery/SfGallery.vue
         <Anonymous>
           <LazyHydrate>
             <Product> at pages/Product.vue
               <Nuxt>
                 <DefaultLayout> at layouts/default.vue
                   <Root>

Code of Conduct

Baroshem commented 2 years ago

Hey @anikghosh256

Thanks for reporting this issue. Maybe you would like to create a pull request with this change? I can provide any help needed 🙂