[Vue warn]: Error in render: "TypeError: Cannot read property 'matched' of undefined"
2018-09-28 17:38
1476 查看
菜鸟级的错误,,,,
[Vue警告]:渲染错误:“TypeError:无法读取属性’匹配’的未定义”
没有导出实例,当然匹配不上啊!!!!!!! 改成下面就好了
export default new VueRouter({ routes: [ { path:'/pf', component:Pf } ] })
还有一种可能就是 vue实例中的 “参数名” 用错,必须是“router”才可以,否则也是匹配不上
new Vue({ el: '#app', router, (缩写)相当于 router: router render: h => h(App), })
相关文章推荐
- 报错:[Vue warn]: Error in render: "TypeError: Cannot read property 'matched' of undefined"
- 报 [Vue warn]: Error in render: "TypeError: Cannot read property 'stInfoCode' of null" 的错误
- 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 warn]: Error in callback for watcher "xxxxxxxxx": "TypeError: Cannot set property 'name' of
- Vue使用Typescript开发编译时提示“ERROR in ./src/main.ts Module build failed: TypeError: Cannot read property '
- Uncaught TypeError: Cannot read property 'length' of undefined出现的问题
- ionic3+angular4中给DOM添加监听事件后报错:Uncaught (in promise): TypeError: Cannot read property 'addEventListen
- 更新jquery-1.12.4.min.js后抛may throw: Uncaught TypeError: Cannot read property 'mozilla' of undefined
- vue.js中报错: TypeError: Cannot read property 'indexOf' of undefined
- Angularjs报错:TypeError: Cannot read property 'slice' of undefined
- Uncaught TypeError Cannot read property 'length' of undefined
- TypeError: Cannot read property 'password' of undefined
- 错误:Uncaught TypeError: Cannot read property 'WebSocket' of undefined
- Uncaught TypeError: Cannot read property '_setter' of undefineda
- 【Angular2】Uncaught (in promise): TypeError: Cannot read property 'id'
- Uncaught TypeError: Cannot read property 'attr' of undefined
- Uncaught TypeError: Cannot read property 'options' of undefined
- js中Uncaught TypeError: Cannot read property 'substr' of undefined问题分析
- echarts.js:24938 Uncaught TypeError: Cannot read property '0' of undefined