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.