vue Cannot read property 'call' of undefined

import Vue from 'vue';
import Router from 'vue-router';
// import InstanceList from '@/views/instance/list';
const InstanceList = () => import('@/views/instance/list');
Vue.use(Router);

export default {
  basicLayout: {
    path: `/${VUE_APP_PLUGIN_NAME}`,
    children: [
      {
        title: 'xxx',
        path: '/instance',
        component: InstanceList
      }
    ]
  }
}

webpack4,使用的是是vue-cli3,使用懒加载后,报错Uncaught TypeError: Cannot read property 'call' of undefined,定位后发现module[moduleId]为undefined。如果不用懒加载没问题,排查不出问题在哪儿,求指导
image.png
image.png

阅读 3k
1 个回答
推荐问题