vue异常报错解决 Missing ref owner context. ref cannot be used on hois 或者是 Cannot read property ‘refs‘ of n
生活随笔
收集整理的這篇文章主要介紹了
vue异常报错解决 Missing ref owner context. ref cannot be used on hois 或者是 Cannot read property ‘refs‘ of n
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
本地環境報錯:[Vue warn]: Missing ref owner context. ref cannot be used on hoisted vnodes.
一部署到生產環境就報錯這個:Cannot read property ‘refs’ of null
百度搜了兩個關鍵字沒有正確的解答,沒有具體行報錯,只能一行一行排查過去,發現是v-loading導致的,頁面在讀取數據需要加個等待加載的效果,這個v-loading需要放在最外層套個div上才行,不能放在里面的組件上
總結
以上是生活随笔為你收集整理的vue异常报错解决 Missing ref owner context. ref cannot be used on hois 或者是 Cannot read property ‘refs‘ of n的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 卡通农场服务器无响应是怎么回事,卡通农场
- 下一篇: 为什么我们不能坚持到底?