首先是按照常规的箭头函数引入的方法,结果报一下错误,且页面报错
const HelloWorld=()=>import('../components/HelloWorld.vue');
解决办法
import { defineAsyncComponent } from 'vue' const HelloWorld=defineAsyncComponent(()=>import('../components/HelloWorld.vue'));
标签:vue,undefined,defineAsyncComponent,HelloWorld,Invalid,vue3,import From: https://www.cnblogs.com/wcq520/p/17439988.html