vue-router无法解析默认的异步组件:TypeError:无法读取未定义的属性“ call”

时间:2020-05-20 10:53:56

标签: javascript typescript vue.js

在我的Vue Typescript应用程序上添加/otp-validation路由时出现此异常错误。

vue-router.esm.js?8c4f:16 [vue-router] Failed to resolve async component default: TypeError: Cannot read property 'call' of undefined

Route.ts

{
path: '/forget-password',
component: () => import('../app/auth/components/forget-password.component.vue'),
  },

{
    path: '/otp-validation',
    component: () => import('../app/auth/components/otp-validation.component.vue'),
  },

因此,我使用了忘记密码文件更改了otp验证,并且它可以正常工作,并且otp验证和忘记密码文件是相同的。

请帮助我。

0 个答案:

没有答案