2017-11-30 9 views
2

フロントエンドにVue.js v2.5.1を使用してWebアプリケーションをビルドしました。アプリケーションは一般的にはうまくいきますが、問題が発生した場合、スローされるエラーメッセージは、コードの一部ではなくvue.jsコード自体を参照するだけです(私のテンプレートでは何かを想定しています)。問題。ここでVue.jsデバッグメッセージの問題

は一例です:

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のデータはすべて正常に見えます)。

答えて

0

状態の変更が完了していないときに突然変異内でルート変更を押しても、このエラーが見つかりました。に経路変更プッシュをラップして解決しました。

関連する問題