Vue配置路由报错了,有没大佬解答一下

Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent) is not a function
at eval (webpack-internal:///./node_modules/vue-router/dist/vue-router.esm-bundler.js:2147:90)
at Module../node_modules/vue-router/dist/vue-router.esm-bundler.js (chunk-vendors.js:1312:1)
at webpack_require (app.js:584:33)
at fn (app.js:817:21)
at eval (webpack-internal:///./src/router/index.js:3:68)
at Module../src/router/index.js (app.js:491:1)
at webpack_require (app.js:584:33)
at fn (app.js:817:21)
at eval (webpack-internal:///./src/main.js:12:65)
at Module../src/main.js (app.js:480:1)

回答

路由版本出错。换个版本即可

以上是Vue配置路由报错了,有没大佬解答一下的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>