Closed lijunjin418 closed 3 years ago
I have the same problem, but my image-lightbox works normally, but generates the console log: [Vue warn]: Error in render: "TypeError: Cannot read property 'type' of undefined"
I would like to know if you can prevent this log from being generated
I found out what my problem was! I was setting an empty obj before having images in it and this was triggering the error on the console because the type was invalid! Adding a v-if to display the ligth-box only with the obj length greater than 0, and it worked correctly.
I found out what my problem was! I was setting an empty obj before having images in it and this was triggering the error on the console because the type was invalid! Adding a v-if to display the ligth-box only with the obj length greater than 0, and it worked correctly.
Thank you, Rafael! Warnings and errors are gone!
I'm glad I helped you!
I want to play several videos. My code is the followings. I tryied with 2 methods. Method1:(Error: client.js?06a0:84 TypeError: Cannot read property 'type' of undefined)
Method2:(always loading only 1st video, If turning video to image, vise versa, It is working normally)