I'm trying to import a component like this for lazy loading:
components: {SizeChartForm:() => import("@/core/components/size/SizeChartForm/SizeChartForm")},
I'm having a ref to SizeChartForm component:
<SizeChartForm ref="sizeChart" v-model="value" />
and trying to use it in the mounted:
mounted() {
this.$refs.sizeChart.setDisabled(false)
}
but it says sizeChart is undefined. Even $nextTick is not working.
But when I use normal import it works:
import SizeChartForm from "@/core/components/size/SizeChartForm/SizeChartForm";
components: {SizeChartForm}
Vue version: 2.6.11