[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.

简介: [@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.

Vue2的项目中,控制台报错


[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.

原因是 package.json 中没有锁定Vue的版本


{
  "dependencies": {
    "vue": "^2.6.10"
  } 
}

node_modules 装的却是这个版本:


"version": "2.7.4"

修改如下,重新安装


{
  "dependencies": {
    "vue": "2.6.10"
  } 
}

版本号的匹配规则:

2.6.10 只匹配 2.6.10
^2.6.10 会匹配小版本 "2.x.x" eg: 2.6.10、2.7.0
~2.6.10 会匹配大版本 "2.6.x" eg: 2.6.10、2.6.0

相关文章
|
8月前
vue2项目使用?.语法报错如何解决?(@babel/plugin-proposal-optional-chaining)
vue2项目使用?.语法报错如何解决?(@babel/plugin-proposal-optional-chaining)
178 0
|
4月前
|
编解码 JavaScript 编译器
【Vue warn】If this is a native custom element, make sure to exclude it from component resolution ……
【Vue warn】If this is a native custom element, make sure to exclude it from component resolution ……
|
JavaScript
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.
361 0
|
7月前
|
JavaScript API
art-template
art-template
|
8月前
|
机器学习/深度学习 自然语言处理 索引
GTEE-DYNPREF: Dynamic Prefix-Tuning for Generative Template-based Event Extraction 论文解读
我们以基于模板的条件生成的生成方式考虑事件抽取。尽管将事件抽取任务转换为带有提示的序列生成问题的趋势正在上升,但这些基于生成的方法存在两个重大挑战
75 0
react+hook+ts项目总结-ant design form autoComplete=“off“
react+hook+ts项目总结-ant design form autoComplete=“off“
73 0
react+hook+ts项目总结-ant design input prefix
react+hook+ts项目总结-ant design input prefix
85 0
react+hook+ts项目总结-ant design input prefix
|
TensorFlow API 算法框架/工具
解决AttributeError: module ‘tensorflow‘ has no attribute ‘div‘
解决AttributeError: module ‘tensorflow‘ has no attribute ‘div‘
140 0
解决AttributeError: module ‘tensorflow‘ has no attribute ‘div‘
|
运维 算法 数据挖掘
Outlier Detection Methods|学习笔记
快速学习 Outlier Detection Methods
82 0
Outlier Detection Methods|学习笔记
|
算法 数据可视化 数据挖掘
Hierarchical Methods|学习笔记
快速学习 Hierarchical Methods
135 0
Hierarchical Methods|学习笔记