Course Content
Subtitle Guide – Hướng dẫn thêm phụ đề
0/1
21 – Roundup & Next Steps
0/1
Vue – The Complete Guide (incl. Router & Composition API)
About Lesson

It turns out, that it’s NOT recommended to use async components for routing (you may use them to conditionally load and fetch component code when working with v-if etc. though).

For routing, simply change the syntax from

const CoachDetail = defineAsyncComponent(() =>
  import('./pages/coaches/CoachDetail.vue')
);

to

const CoachDetail = () => import('./pages/coaches/CoachDetail.vue');

(for all routes)