vue3 unhandled error during execution of scheduler flush.

vue3 在setup初始化的時候報 unhandled error during execution of setup function。翻譯:在setup 的function、出現異常錯誤, 可以在chome的F12 查看Console裏面看到

 

 

原因是seup 裏面我放了一個init的方法,頁面加載就進行初始化,但是報錯了。 所以需要慢慢註釋判斷哪裏出錯了,當然,你也可以寫一個try catch就行判斷。

而重複多次調用報錯,就會出現

[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next

 

所以只要解決seup中初始化裏面初始化出錯的問題就行了。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章