其他分享
首页 > 其他分享> > warning in ./src/main.js 8:8-17 "export 'default' (imported as 'VueRouter

warning in ./src/main.js 8:8-17 "export 'default' (imported as 'VueRouter

作者:互联网

warning in ./src/main.js 8:8-17 "export 'default' (imported as 'VueRouter') was not found in 'vue-router'

解决方法
Vue Router v3对应Vue2.x, v4对应Vue3,

cnpm install vue-router@3 or 4

这样就不会报错

标签:src,vue,imported,warning,export,VueRouter,router
来源: https://www.cnblogs.com/luoking/p/15907878.html