vue路由设置报错

[Vue warn]: Unknown custom element: - did you register the component correctly?

报错原因:路由没有注册

Vue.use(VueRouter)

解决完之后再次出现问题:

Missing required prop: "to" found in --->

Error in render: "TypeError: Cannot read properties of undefined (reading '_normalized')" found in--->

vue.runtime.esm.js?c320:1897 TypeError: Cannot read properties of undefined (reading '_normalized')

注释掉路由出口及所有报错消失,但是无法解决页面显示问题

突然找问题找着找着,一拍脑门发现写错了路由出口标签

ummmm.....学会问题排查,淡定找问题


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部