[Vuejs]-Vue Cool Lightbox โ€“ TypeError: Cannot read property 'match' of undefined

0๐Ÿ‘

You are passing nothing to CoolLightBox you should check if data is fetched from server and then render the component maybe like :

        <CoolLightBox 
        v-if="projects.length > 0"
        :items="projects" 
        :index="index"
        @close="index = null">
        </CoolLightBox>

0๐Ÿ‘

I have encountered same issue, I was able to solved it by following the array of objects the same way with the examples provided in the documentation:

items: [
    {
      title: "",
      description: "",
      src: ""
    }
]

Leave a comment