vue搭建路由报错 TypeError: Object(...) is not a function

vue中使用router-view搭建的路由报错TypeError: Object(...) is not a function

img

vue-router版本过高,将vue-router版本降低就不会报错了

路由的index.js配置错误或者电磁屏IE错误导致的你仔细找一下吧

main.js 和 router/index.js 里面看看 。