3.3.2的BUG:[Window] [Vue warn]: Duplicate keys detectedThis may cause an update error

  • Creator 版本: 3.3.2

  • 目标平台: Chrome

  • 重现方式:改动ts脚本内的property,然后切换到creator就概率报错。资源管理器里的内容好像卡住了,滚动无法显示后续的资源或层级,点击层级也无法正确切到该层级的属性页。重启creator后就能恢复正常。这两天升级后已经重启无数次了。

  • 首个报错:[Scene] 1 already defined in Enum.
    at error (D:\CocosDashboard_3.0\resources.editors\Creator\3.3.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:125358:10)

at errorID (D:\CocosDashboard_3.0\resources.editors\Creator\3.3.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:125565:3)

at Function.update (D:\CocosDashboard_3.0\resources.editors\Creator\3.3.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:140241:28)

at Enum (D:\CocosDashboard_3.0\resources.editors\Creator\3.3.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:140209:15)

at Proxy.getSkinsEnum (D:\CocosDashboard_3.0\resources.editors\Creator\3.3.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:23616:48)

at Skeleton._updateSkinEnum (D:\CocosDashboard_3.0\resources.editors\Creator\3.3.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:25587:36)

at Skeleton._refreshInspector (D:\CocosDashboard_3.0\resources.editors\Creator\3.3.2\resources\resources\3d\engine\bin.cache\dev\editor\bundled\index.js:25646:10)

[Window] [Vue warn]: Duplicate keys detected: ‘e46rD/iIxKHLCHZvyQ3b3U’. This may cause an update error.found in—>

  • 之前哪个版本是正常的: 3.3.1
  • 手机型号:
  • 手机浏览器:
  • 编辑器操作系统:
  • 重现概率: 50%

有没有其他的报错?

刚刚以为找到问题了,并不是,没啥其他报错

现在基本90%概率出现,只要改了脚本,creator就报错,需要重启····

是不是有用到Prefab?里边有FileId相同的Component,可以发我看一下~

好像确实是prefab的问题,我把prefab都删了就没有再报错了 :laughing:

嗯,有问题的Prefab现在需要手动修改一下,找到里边FileId相同的组件或Node,一般是因为复制出来的(这个在3.4中已经修改),需要删除新建一个。


开发大大,可以帮忙看下这个问题吗?AnimationClip编辑不了了

你是编辑的什么属性?

opacity

你试一下在动画编辑器界面上编辑,而不是在属性Inspector编辑值

我是在动画编辑器上面编辑的。复现步骤:1、节点添加Opacity组件;2、进入动画编辑;3、增加Opacity轨道;4、添加第一个关键帧成功,修改Opacity为0;5、添加第二个关键帧无效,报错;

先以一个非0的值打关键帧应该就可以吧?应该是以0值打关键帧出的问题,会在3.4上修复~

哈哈,对的,赋1就没问题了,感谢

cocos里还能用vue吗?

啊, 这个bug我已经看到很久很久了,但不知道是什么原因触发的。。。

我这边试过一天重启上百次。。。很多人不信。。。还以为我夸大。。。

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。