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
4条答案
按热度按时间new9mtju1#
my English is not good
you should open router.js fixed import
component: (resolve) => require(["@/views/login/index"], resolve),
9nvpjoqh2#
It work but for login route only
Should we update all the routes same way?
a9wyjsp73#
Resolved by locking webpack to
"webpack": "4.28.4"
zphenhs44#
It work but for login route only
Should we update all the routes same way?
yes