vue.runtime.esm.js?2b0e:619 [Vue warn]: Missing required prop: "to"
[Vue warn]: Error in render: "TypeError: Cannot read property '_normalized' of undefined"
vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read property '_normalized' of undefined

当浏览器报错以上错误的时候。需要检查一下在配置路由的时候是否写对的,以下是可能出现的错误:

<div class="main">
<!--- 所有的路由对象都会显示在此节点,对组件挂载的位置 -->
<router-link><router-link>
</div>

2、在控制台出现的错误:error found.可能是代码规范出现的错误,认真检查代码是否有写错误的地方。
3、Error in nextTick: "TypeError: Cannot read property '__ob__' of undefined"出现的问题因为在组件 ComponentA 中保留无效的 data(){}, 组件 ComponentA 根据条件加载或销毁,即带有 v-if,当 Component 销毁时会出现上述问题,去掉 data(){} 或者写正确 就没解决。
[vue-router] missing param for named route “D”: Expected “id” to be defined
在组件中通过id跳转没写完全时出现的错误。

Logo

前往低代码交流专区

更多推荐