[Vuejs]-How to resolve: [Vue warn]: Error in render: "TypeError: Cannot read property … of undefined"

0👍

This is resolved. Apparently, the issue was being caused from another file, ToolCard.vue, which had this in it:

<div class="learn-cta">
  <router-link tag="a" :to="`tool/${data.tool_url}`">
    Learn More
  </router-link>
  <img src="@/assets/icons/arrow_blue.svg" />
</div>

referencing tool_cards.json, in which I needed to add a tool_url line. That made the URLs properly generate for each tool link to work and the undefined error disappeared.

Leave a comment