current position:Home>Vue introduces vant / elementul

Vue introduces vant / elementul

2022-04-29 09:42:04Scar body

introduce vant

npm i vant -S  //vue2.0

stay main.js Use

import Vue from 'vue';
import Vant from 'vant';
import 'vant/lib/index.css';
 
Vue.use(Vant);

This error is reported after installation
 Insert picture description here
It's about the version

stay package.json On

 "vant": "^2.12.33",

copyright notice
author[Scar body],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204290746321949.html

Random recommended