[@vue/compiler-sfc] ::v-deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead.
时间: 2023-10-12 10:55:16 浏览: 114
Vue中的v-for指令不起效果的解决方法
5星 · 资源好评率100%
\[@vue/compiler-sfc\] ::v-deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead. 这个报错是因为在Vue 3中,::v-deep选择器作为组合器已经被弃用了,取而代之的是使用:deep(<inner-selector>)选择器。这个报错可能会在一些手写的组件或者一些第三方组件库中出现,比如antdv。尽管这个报错不会影响项目的运行,但是在控制台中显示出来可能会让人感到不舒服。所以,为了避免这个报错,建议使用:deep(<inner-selector>)选择器来替代::v-deep选择器。
#### 引用[.reference_title]
- *1* [[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.](https://blog.csdn.net/qq_68155756/article/details/128896890)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [vue2报错“::v-deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead....](https://blog.csdn.net/renovateF5/article/details/126096733)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [[@vue/compiler-sfc] ::v-deep usage as a combinator has been deprecated. Use :deep(<inner-selector>...](https://blog.csdn.net/qq_41956361/article/details/127908664)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文