I'm building a HackerNews clone and am experiencing the following error:
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 template code for this component is as follows:
<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 anyone can assist in this, that would be great?
router
with Vue instance... can you sharenew Vue({ ...
codes? – Sajib Khan