0👍
The error came from this line.
text: this.$route.matched[idx].meta.breadCrumb || path,
It’s because you are accessing an index for matched route
where that index is not available on the array. It seems that the matched route contain only one element and your targeting the index of 1 upon iterating your pathArray.
Or should I say, you’re targeting the index in matched route where it does not exists.
That’s why vue returned this warning.
[Vue warn]: Error in render: "TypeError: Cannot read property 'meta' of undefined"
Please check your matched route
if it contain elements equal to the length of pathArray
.
Source:stackexchange.com