Vue报错-[Vue warn]: Unknown custom element: <van-action-sheet> - did you register the component correc
项目场景:
今天在使用到vant组件的时候引入报错。
[Vue warn]: Unknown custom element: <van-action-sheet> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
原因分析:
vant的ActionSheet 动作面板,v1、v2新旧版本不一样,名字都不一样。这可太细了。
ActionSheet // 新版本
Actionsheet // 旧版本
import和use的时候要注意,版本不对应就拉了。
import { Actionsheet } from "vant"; // 旧版本
Vue.use(Actionsheet)import { ActionSheet } from "vant"; // 新版本
Vue.use(ActionSheet)
而且标签名也不一样:
van-action-sheet // 新版本
van-actionsheet // 旧版本
Vue报错-[Vue warn]: Unknown custom element: <van-action-sheet> - did you register the component correc相关推荐
- vue.js:634 [Vue warn]: Unknown custom element: <router-link> - did you register the component correc
今天第一次学习VueRouter就出了一个坑让我弄了两个小时 报错如下 代码如下 <div id="app"><!--router-link来指定跳转的路径--& ...
- [Vue warn]: Unknown custom element: <helptext> - did you register the component correctly? For recu
报错信息: vue.js:634 [Vue warn]: Unknown custom element: - did you register the component correctly? For ...
- [Vue warn]: Unknown custom element: <Top> - did you register the component correctly?
[Vue warn]: Unknown custom element: - did you register the component correctly? 错误如下: 出现错误的原因有以下几种: ...
- 解决[Vue warn]: Unknown custom element: <ag> - did you register the component correctly? For recursive
[Vue warn]: Unknown custom element: <ag> - did you register the component correctly? For recur ...
- 【 已解决】[Vue warn]:Unknown custom element: <a-calendar> - did you register the component correctly
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive compon ...
- [Vue warn]: Unknown custom element: <rules-set> - did you register the component correctly? For recu
1.使用父子组件时,报错 2.子组件未引入 import rulesSet from "./components/rulesSet.vue" components: {rulesS ...
- [Vue warn]: Unknown custom element: <mycom> - did you register the component correctly? For recursiv
问题 最近在写一个前后端分离的项目,结果发现VUE忘得差不多了,回头回顾下,结果复习到组件就把我卡了半天 错误代码如下: <!DOCTYPE html> <html><h ...
- 报错#vue-router#unknown custom element: <router-link> - did you register the component correctly?
报错截图: 报错信息: [Vue warn]: Unknown custom element: - did you register the component correctly? For recu ...
- 报错,Unknown custom element: <DeviceVendorStatistics> - did you register the component correctly? For
问题: vue-router.esm.js?85f8:2100 Uncaught (in promise) undefined eval @ vue-router.esm.js?85f8:2100 a ...
最新文章
- elementary OS 6 评测!
- HR一般不会告诉你的八大真相
- Hibernate之mappedBy
- C++ primer - - 第一部分
- 使用vmware converter转物理机linux的问题
- 启明云端分享|ESP32-C3-MINI-1和ESP32-C3-MINI-1U的区别是什么?
- iPhone Safari下iframe不显示滚动条无法滚动的解决方法
- tableau三轴该怎么做_如何用tableau绘制城市地铁线路图?
- python使用HDF文件格式,保存多个类型的数据到一个文件
- JavaScript 中数组 sort() 方法的基本使用
- 接种新冠疫苗到实现完全免疫最快需要35天
- Common lisp之加载方式(一)
- 关于面向对象和面向过程等小例子(持续更新)
- 使用python把txt文件转为csv文件并且利用自己想要的分割符号
- 流行音乐网站 /音乐网站
- win7 实用功能 - 键盘键
- php团购实现,团购网站的设计与实现(PHP,MySQL)(含录像)
- [hbase] hbase写操作时对wal和memstore的操作顺序
- Mixer-First Receiver适用于宽带阵列应用的接收机技术1
- python codes模块读写文本文件的简要说明
热门文章
- 我国信息安全发展历程及相关产业链分析
- 扫描仪 连续pdf_为什么扫描仪将PDF用作默认文件格式?
- poi word 添加内容时 光标向下迭代生成新的段落
- Exchange 启用AD账户已经存在或者不存在两种情况
- Google分布式三篇论文--MapReduce
- 云管边端架构图_【学术论文】车路协同的云管边端架构及服务研究
- HTML5见缝插针小游戏
- 猛犸不上班--2021RoboCom决赛补题
- 【每日新闻】彭震:产业互联网将是浪潮服务器的下一个风口;Gartner:只有65%的企业组织有网络安全专家...
- 人员抽烟行为识别检测算法