遇到报错
ERROR
Cannot read properties of undefined (reading 'install')
TypeError: Cannot read properties of undefined (reading 'install')
at Vue.use (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:5466:27)
at eval (webpack-internal:///./src/router/index.js:11:45)
at ./src/router/index.js (http://localhost:8080/js/app.js:491:1)
at __webpack_require__ (http://localhost:8080/js/app.js:584:33)
at fn (http://localhost:8080/js/app.js:817:21)
at eval (webpack-internal:///./src/main.js:4:65)
at ./src/main.js (http://localhost:8080/js/app.js:480:1)
at __webpack_require__ (http://localhost:8080/js/app.js:584:33)
at http://localhost:8080/js/app.js:1705:109
at __webpack_require__.O (http://localhost:8080/js/app.js:630:23)
检查了半天代码,好像都对,最后发现是版本不一致
vue版本 | vue-router版本 |
---|---|
2 | 3 |
3 | 4 |