2๐
โ
Iโd add an errorComponent in this case, see
https://vuejs.org/guide/components/async.html#loading-and-error-states.
const AsyncComp = defineAsyncComponent({
// the loader function
loader: () => import('./Foo.vue'),
// A component to use while the async component is loading
loadingComponent: LoadingComponent,
// Delay before showing the loading component. Default: 200ms.
delay: 200,
// A component to use if the load fails
errorComponent: ErrorComponent,
// The error component will be displayed if a timeout is
// provided and exceeded. Default: Infinity.
timeout: 3000
})
Also importing from "vue/dist/vue" looks wrong?
๐คdisservin
Source:stackexchange.com