Lazy-load components in Vue 3 #9324
Unanswered
aabm00
asked this question in
General - Components / Directives / etc
Replies: 1 comment
-
@aabm00 https://v3.vuejs.org/guide/migration/async-components.html#_3-x-syntax |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi !
To lazy load components, in the docs say :
<script> export default { components: { SomeComponent: () => import('components/SomeComponent'), } } </script>
it works in Vue 2 but it didn't work for me in Vue 3
It had to be:
SomeComponent: (() => import('components/SomeComponent')),
Only for if someone had the same issue
Beta Was this translation helpful? Give feedback.
All reactions