vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
https://antdv.com/
Other
20.21k stars 3.79k forks source link

Warnings on console when using Menu component #3998

Closed ais-one closed 3 years ago

ais-one commented 3 years ago

Version

2.1.3

Environment

Windows 10, Chrome 89, Vue 3.0.11

Reproduction link

https://2x.antdv.com/components/menu

Steps to reproduce

Use the example code for Menu, with version ant-design-vue version 2.1.3

What is expected?

It is working properly but...

What is actually happening?

There is warnings in the console

reactivity.esm-bundler.js:337 Set operation on key "" failed: target is readonly. {: 1, __vInternal: 1, default: ƒ}

bao2314483 commented 3 years ago

update 2.1.6

我刚刚试了2.16 vue:3.0.10 依然有警告

lizaiya commented 3 years ago

我刚刚试了2.16 vue:3.0.10 依然有警告

ais-one commented 3 years ago

Hi All,

If you want to bring the issue to attention of VueJS maintainers, the issue link is here...

https://github.com/vuejs/vue-next/issues/3695

arthur-0595 commented 3 years ago

mark!

chenhaizano commented 3 years ago

mark

package.json dependencies

"ant-design-vue": "^2.1.6",
"vue": "^3.0.0",

components

Menu

warn

Set operation on key "default" failed: target is readonly.

pprory commented 3 years ago

mark!

wwhsuccess commented 3 years ago

还是这个问题,一直没法解决。

zhangshaoying19 commented 3 years ago

"ant-design-vue": "2.1.2", "vue": "3.0.11",

"vite":^2.3.3

no warning

ais-one commented 3 years ago

Hi,

The fixes have been merged... https://github.com/vuejs/vue-next/pull/3698

Please wait for the next update of vue-next, and then try out the fixes.

The fix for this issue currently depends on vue and not ant-design-vue team.

xiaohuaye commented 3 years ago

mark

dokodream commented 3 years ago

image image 只要是修改:selectedKeys的引用值就会报这个问题,不是vue的问题

qinyugithub commented 3 years ago

version 2.1.6; vue@3.0.10 ; still warnings

fuyongshuai7 commented 3 years ago

mark

qiuyaofan commented 3 years ago

v2.1.2 没有此问题

然而,vite build会报错~ #3895

catelina95 commented 3 years ago

"vue": "^3.0.0", "ant-design-vue": "2.1.6", still warngings.....

catelina95 commented 3 years ago

"ant-design-vue": "2.1.2", "vue": "3.0.11",

"vite":^2.3.3

no warning

实测可用!!! "ant-design-vue": "2.1.6" 却报错!!

ais-one commented 3 years ago

vue 3.1.1 has no more warnings, but a problem with layout is created...

https://github.com/vueComponent/ant-design-vue/issues/4173

335296558 commented 3 years ago

The version I use is: "vite": "2.1.5" "vue": "3.0.10" || "vue": "3.0.11" Both Set operation on key "default" failed: target is readonly. Question。

Then I updated vue to "vue": "3.1.1" The problem was solved

把vue 更新到 "vue": "3.1.1" 就好了

github-actions[bot] commented 2 years ago

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.