ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

@vue/compat error with Cannot read properties of undefined (reading 'getPrefixCls')

Open HenryWong-fe opened this issue 2 years ago • 5 comments

  • [ ] 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?

无法使用

HenryWong-fe avatar Jul 01 '22 02:07 HenryWong-fe

@vue/compet 是什么,不知道

tangjinzhou avatar Jul 01 '22 05:07 tangjinzhou

@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以上版本都出现了以上问题

HenryWong-fe avatar Jul 01 '22 05:07 HenryWong-fe

the same.

adnabb avatar Jul 04 '22 01:07 adnabb

看着是 @vue/compat 的问题,对于函数式组件的转换出了问题,你可以去给 @vue/compat 提issue

tangjinzhou avatar Jul 05 '22 16:07 tangjinzhou

@HenryWong-fe 请问这个问题有解决办法嘛?

Tiquiero avatar Aug 15 '22 06:08 Tiquiero

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.

github-actions[bot] avatar Sep 27 '23 00:09 github-actions[bot]