vue报错[Vue warn]: Error in nextTick: "RangeError: Maximum call stack size exceeded"
- 报错原因:vue单文件组件中命名name与模板中引入组件名字相同导致,
<template>
<grid-layout></grid-layout>
</template>
<script>
export default {
name:'grid-layout'
components:{
GridLayout
}
</script>
解决方案:修改模板中引入组件名字为即可解决
<template>
<GridLayout></GridLayout>
</template>
<script>
export default {
name:'grid-layout'
components:{
GridLayout
}
</script>