[Solved] [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined (reading ‘0’)”;

2023/05/17 18:03

Error

vue.esm.js?c9fd:628 [Solved] [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined (reading ‘0’)”;

Solution

Elements do not exist when there is no data, so you need to use v-if to check if the data exists.

Leave a Reply

Back to top