错误信息如下 :
Critical dependency: the request of a dependency is an expression
路由代码如下:
routes: [
{
path: '/login',
name: 'login',
component: resolve => require(['./../views/login/login.vue', resolve])
},
{
path: '/404',
name: '404',
component: resolve => require(['./../views/404.vue', resolve])
}
]
以前也这么写过,没有出现过这种情况,求解