error:These relative modules were not found
import Vue from 'vue' import VueRouter from 'vue-router' import Login from '../views/Login.vue' import Home from '../views/Home.vue' Vue.use(VueRouter) const routes = [ { path: '/', name: 'Login', component: Login, }, { path: '/home', name: 'Home', component: Home, children:[ { path: 'list', name: 'List', component: () => import(/* webpackChunkName: "list" */ './views/List.vue') }, { path: 'user', name: 'User', component: () => import(/* webpackChunkName: "user" */ './views/User.vue') }, ] }, ] const router = new VueRouter({ mode: 'history', base: process.env.BASE_URL, routes }) export default router
而详细错误如下:
These relative modules were not found:
* ./views/List.vue in ./src/router/index.js
* ./views/User.vue in ./src/router/index.js
我的路径应该都没有出错,想求教如何解决