首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vue.js调试消息问题

Vue.js调试消息问题
EN

Stack Overflow用户
提问于 2017-12-01 04:13:02
回答 0查看 3.4K关注 0票数 6

我已经使用Vue.js v2.5.1为前端构建了一个web应用程序。这个应用程序通常工作得很好,但是当出现问题时,抛出的错误消息只会引用vue.js代码本身,而不是我的代码部分(我假设在我的模板中有一些内容),而这些部分无疑是问题的真正根源。

下面是一个示例:

代码语言:javascript
复制
Error in nextTick: "NotFoundError: Failed to execute 'insertBefore' on 
'Node': The node before which the new node is to be inserted is not a 
child of this node."
warn @ vue.js?v=1:491
logError @ vue.js?v=1:600
globalHandleError @ vue.js?v=1:595
handleError @ vue.js?v=1:584
(anonymous) @ vue.js?v=1:735
nextTickHandler @ vue.js?v=1:685
vue.js?v=1:604 DOMException: Failed to execute 'insertBefore' on 
'Node': The node before which the new node is to be inserted is not a child of this node.
at Object.insertBefore (https://mywebsite.com/js/vendor/vue.js?v=1:5138:20)
at updateChildren (https://mywebsite.com/js/vendor/vue.js?v=1:5628:48)
at patchVnode (https://mywebsite.com/js/vendor/vue.js?v=1:5695:41)
at updateChildren (https://mywebsite.com/js/vendor/vue.js?v=1:5592:21)
at patchVnode (https://mywebsite.com/js/vendor/vue.js?v=1:5695:41)
at updateChildren (https://mywebsite.com/js/vendor/vue.js?v=1:5592:21)
at patchVnode (https://mywebsite.com/js/vendor/vue.js?v=1:5695:41)
at updateChildren (https://mywebsite.com/js/vendor/vue.js?v=1:5592:21)
at patchVnode (https://mywebsite.com/js/vendor/vue.js?v=1:5695:41)
at updateChildren (https://mywebsite.com/js/vendor/vue.js?v=1:5592:21)

我怎样才能找到问题的根源呢?我已经尝试使用Vue devtools,但所有的开发工具显示的是我的所有Vue组件的列表,事件窗格总是空的,更糟糕的是,当这个错误发生时,整个应用程序都会停止(但vue数据看起来仍然正常)。( do.Whats )

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47581820

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档