vue-element-admin Install and run is broken

4c8rllxm  于 3个月前  发布在  其他
关注(0)|答案(4)|浏览(43)

Hi, I just did a clean install to test the app
I did follow the steps from git main page.

I get this error.

log.js:24 [HMR] Waiting for update signal from WDS...
vue-router.esm.js:16 [vue-router] Failed to resolve async component default: Error: Cannot find module '@/views/login/index'
warn @ vue-router.esm.js:16
vue-router.esm.js:16 [vue-router] uncaught error during route navigation:
warn @ vue-router.esm.js:16
vue-router.esm.js:1897 Error: Cannot find module '@/views/login/index'
at webpackEmptyContext (permission.js:154)
at index.js:73
abort @ vue-router.esm.js:1897
vue.runtime.esm.js:8423 Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
DevTools failed to parse SourceMap: chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/iframe_handler.map
DevTools failed to parse SourceMap: chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/content.map

new9mtju

new9mtju1#

my English is not good
you should open router.js fixed import

component: (resolve) => require(["@/views/login/index"], resolve),

9nvpjoqh

9nvpjoqh2#

It work but for login route only
Should we update all the routes same way?

a9wyjsp7

a9wyjsp73#

Resolved by locking webpack to

"webpack": "4.28.4"

zphenhs4

zphenhs44#

It work but for login route only
Should we update all the routes same way?

yes

相关问题