报错:[Vue warn]: Error in render: "TypeError: Cannot read property 'matched' of undefined"
2018-08-09 00:34
791 查看
如图所示:
源码:
错误原因:
在new Vue()的实例中对路由名称的识别是唯一的,所以 route 并不能被识别,所以需要修改为【router】
另外,在配置路由的时候,还需要注意routes这个也是固定的,如图:
阅读更多
相关文章推荐
- vue项目中Error in render function: "TypeError: Cannot read property 'matched' of undefined"
- vuejs路由使用的问题Error in render function: "TypeError: Cannot read property 'matched' of undefined"
- Vue使用Typescript开发编译时提示“ERROR in ./src/main.ts Module build failed: TypeError: Cannot read property '
- TS/JS错误:TypeError: Cannot read property 'prototype' of undefined
- 更新jquery-1.12.4.min.js后抛may throw: Uncaught TypeError: Cannot read property 'mozilla' of undefined
- cocos2d-js | 数组容器报错undefined “Uncaught TypeError: Cannot read property 'x' of undefined”
- Uncaught TypeError: Cannot read property ‘props’ of undefined
- Uncaught TypeError: Cannot read property 'length' of undefined出现的问题
- EasyUI异常——Uncaught TypeError: Cannot read property 'options' of undefined
- Extjs4---Uncaught TypeError: Cannot read property ‘items’ of undefined
- 解决vue2.0路由 TypeError: Cannot read property 'matched' of undefined 的错误问题
- app.js:1274 [Vue warn]: Error in render: "TypeError: Cannot read property 'object_id' of undefined"问题小记
- TypeError: Cannot read property 'password' of undefined
- Uncaught TypeError: Cannot read property 'width' of undefined
- Angularjs报错:TypeError: Cannot read property 'slice' of undefined
- [Vue warn]: Error in render: "TypeError: Cannot read property '0' of undefined、vuejs路由使用的问题Error in render function
- [Angular] ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'name' of undefined
- 错误:Uncaught TypeError: Cannot read property 'WebSocket' of undefined
- echarts.js:24938 Uncaught TypeError: Cannot read property '0' of undefined
- React开发问题记录--(in promise) TypeError: Cannot read property 'data' of undefined