ant-design-vue
ant-design-vue copied to clipboard
@vue/compat error with Cannot read properties of undefined (reading 'getPrefixCls')
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.2.6
Environment
vue version 3.2.36
Reproduction link
https://github.com/HenryWong-fe/vue-compet-ant-design-vue
Steps to reproduce
在使用@vue/compat做vue2项目升级时,使用ant-design-vue会出现报错
What is expected?
可以使用@vue/compat的同时,使用ant-design-vue
What is actually happening?
无法使用
@vue/compet 是什么,不知道
@vue/compat 是什么,不知道
这是官方提供的,用于vue2升级至vue3的方案,对于项目已经很庞大的我们来说,没有办法直接升级vue3
这里是官方文档: https://github.com/vuejs/core/tree/main/packages/vue-compat#readme
这里是之前其他人提出的相关问题: https://github.com/vueComponent/ant-design-vue/issues/4368#issue-944471996
这里同样未解决,使用ant-design-vue 2.2以上版本都出现了以上问题
the same.
看着是 @vue/compat 的问题,对于函数式组件的转换出了问题,你可以去给 @vue/compat 提issue
@HenryWong-fe 请问这个问题有解决办法嘛?
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.