Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nekooee's avatar

how to import async Vuetify 3 components?

Hi, I wrote my code to import components dynamically like this But unfortunately, it doesn't work:

const vuetifyComponent = (component) => defineAsyncComponent(() => import(./../node_modules/vuetify/lib/components/${component}/${component}.mjs));

I also tested it like this and it still didn't work:

let {VProgressLinear} = defineAsyncComponent(() => import(vuetify/components));

can you help me?

0 likes
2 replies
Zalo's avatar

Did you solve your issue? I also would like to import lazily vuetify components using defineAsyncComponent but don't know how to do that.

nekooee's avatar

@Zalo No, the problem was not solved! I don't use Vuetify anymore, I use Quasar instead.

Please or to participate in this conversation.