I am creating a SPA in Vue.js using a template.
I created a side bar component and importing it to a view where the side bar will be showing. When I add the side bar to the component I will encounter the following errors.
RangeError: Maximum call stack size exceeded
[Vue warn]: Error in nextTick: "RangeError: Maximum call stack size exceeded"
I have tried the solution stated on this Stack Overflow post, but it doesn't work on my side.
Here is the sample code of my Sidebar.vue:
<template>
<side-bar>
<template slot="links">
<side-bar-item
:link="{
name: 'Home',
icon: 'ni ni-shop',
path: '/widgets'
}"
></side-bar-item>
</template>
</side-bar>
</template>
<script>
export default {
name: "SideBar"
};
</script>
And I am trying to import my sidebar to the Dashboard.vue page.
<template>
<div>
<SideBar />
</div>
</template>
<script>
import SideBar from "@/components/SideBar.vue";
export default {
name: "Dashboard",
components: {
SideBar
}
};
</script>
How can I fix it?