Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not work Lazy Loading Routes. #14

Open
murashi-sn opened this issue May 19, 2023 · 0 comments
Open

not work Lazy Loading Routes. #14

murashi-sn opened this issue May 19, 2023 · 0 comments

Comments

@murashi-sn
Copy link
Collaborator

Vue Router
https://v3.router.vuejs.org/guide/advanced/lazy-loading.html#lazy-loading-routes

following code doesn't work.

{
  path: '/about',
  name: 'About',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
}

can work if modify following.

{
  path: '/about',
  name: 'About',
  component: About
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant