Cannot read property ‘component’ of undefined
来源:15-4 Vue-router(上)

慕粉2226233625
2017-03-15
一开始我遇到的问题是,router.map is not a function,然后我在网上查,就安装了npm install vue-router@0.7.13兼容1.0版本,就没有报这个错了,但是又报了一个新错Cannot read property ‘component’ of undefined,然后再百度,就安装了npm install vue-router@next,就没有报Cannot read property ‘component’ of undefined的错了,但是又报了最开始的错router.map is not a function,怎么解啊?
写回答
4回答
-
ustbhuangyi
2017-03-16
https://github.com/ustbhuangyi/vue-sell 参考我源码里的 package.json 配置,安装,如果是 1.0 就切到 1.0 的分支
012017-03-16 -
ustbhuangyi
2017-03-16
Vue 和 Vue-router 的版本需要匹配
012017-03-22 -
独孤银
2017-03-16
对这些错误各中百度,崩溃中...
00 -
独孤银
2017-03-16
这个问题该怎么解决呢,我卡在这里始终过不去,而且到router.vuejs.org上给出的设置又跟教程不一样
012017-03-22
相似问题