Version number:
vue/cli:4.5.12
vant:^3.0.10
Question:
Failed to resolve component: van-cell-group
at <Home onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > key=0 >
Reason: the van cell group component is not imported
Solution:
You can import it in the ‘main. JS’ file and then use it on the page
The details are as follows:
import {
createApp
} from 'vue'
import {
CellGroup
} from 'vant'
createApp(App).use(CellGroup)