Skip to content
Discussion options

You must be logged in to vote

Hmm, interesting. I think you need to use arrow functions for the route components? I didn't think component accepted promises, either a regular imported component or an arrow function with a dynamic import to split pages into chunks.

  const routes = [
-   { path: "/popup/page_a", component: import("@/components/popup/page_a.vue") },
-   { path: "/popup/page_b", component: import("@/components/popup/page_b.vue") },
+   { path: "/popup/page_a", component: () => import("@/components/popup/page_a.vue") },
+   { path: "/popup/page_b", component: () => import("@/components/popup/page_b.vue") },
  ];

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@accessun
Comment options

Answer selected by accessun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants