我已经在Vue中成功创建了单个文件组件;没有编译错误,但是,当我尝试查看组件(通过导航至其路由链接)时,未显示预期的页面,而是在(Chrome)浏览器中打印了堆栈跟踪-使用Vue Devtools插件。
这是Vue Devtools插件控制台中的stacktrace输出:
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in render:
log.js?1afd:24 [HMR] Waiting for update signal from WDS...
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in render: "TypeError: Converting circular structure to JSON
--> starting at object with constructor 'DockPanel'
| property '_layout' -> object with constructor 'DockLayout'
--- property '_parent' closes the circle"
found in
---> <Demo> at src/components/Demo.vue
<App> at src/App.vue
<Root>
warn @ vue.runtime.esm.js?2b0e:619
logError @ vue.runtime.esm.js?2b0e:1884
globalHandleError @ vue.runtime.esm.js?2b0e:1879
handleError @ vue.runtime.esm.js?2b0e:1839
Vue._render @ vue.runtime.esm.js?2b0e:3544
updateComponent @ vue.runtime.esm.js?2b0e:4060
get …Run Code Online (Sandbox Code Playgroud)