vueComponent / pro-components

easy use `Ant Design Vue` layout
MIT License
535 stars 214 forks source link

[BUG] 在vue 3.2.33版本下报错 #215

Closed Kerbores closed 2 years ago

Kerbores commented 2 years ago

🐛 Bug 描述 Bug description

将vue升级至 3.2.33时打开页面报错,错误信息如下:

[Vue warn]: inject() can only be used inside setup() or functional components. Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getPrefixCls')

🏞 期望结果 Desired result

控制台不报错,页面正常显示

🚑 其他信息 Other information

控制台报错

sendya commented 2 years ago

无法复现你的问题,建议你重新安装依赖

https://sendya.github.io/preview-pro/#/version

xiaolu-coding commented 2 years ago

同样的问题

zhangkx666 commented 2 years ago

也遇到同样的问题,但是貌似把node_modules删掉后重新安装就消失了

7polo commented 2 years ago

也是同样问题

nxnminieye commented 2 years ago

也是同样问题

zhangkx666 commented 2 years ago

@sendya vue 3.2.34及后边的版本都又有这个问题了

94ashui commented 2 years ago

"vue": "^3.2.37" "ant-design-vue": "^3.2.9" "@ant-design-vue/pro-layout": "^3.2.2" 同样有这个问题 @sendya

94ashui commented 2 years ago

@zhangkx666 问题解决了么?