I'm currently working on a project similar to HackerNews and encountering the following issue:
vue.esm.js?efeb:591 [Vue warn]: Error in render: "TypeError: Cannot read property 'replace' of undefined"
found in
---> <Item> at src/components/Item.vue
<Homepage> at src/components/Homepage.vue
<App> at src/App.vue
<Root>
The code snippet for this component is displayed below:
<template>
<div class="story">
<span class="score">{{ story.data.score }}</span>
<router-link :to="{ path: '/story/' + story.data.id }">{{ story.data.title }}<span>{{ story.data.url | host }}</span></router-link><br/>
<span class="meta">
by {{ story.data.by }} | {{ story.data.time }} Ago | {{ story.data.descendants }} comments
</span>
</div>
</template>
If there's anyone who could offer assistance with this error, it would be much appreciated?