Sorry, the component of 'game_root' which with an index of 1 is corrupted! It has been removed. 关键词 背景 报错 解决 参考

Cocos creator 2.4.3 JavaScript 微信小游戏

背景

运行cocos creator项目时突然报错。

报错

Sorry, the component of 'game_root' which with an index of 1 is corrupted! It has been removed.
Sorry, the component of 'game_root' which with an index of 1 is corrupted! It has been removed.
关键词
背景
报错
解决
参考

解决

  • 原因:我运行项目的时候是在prefab预制体编辑器界面运行的,然后报错了。
  • 解决:只需要回到场景scene中再点击运行即可。
    Sorry, the component of 'game_root' which with an index of 1 is corrupted! It has been removed.
关键词
背景
报错
解决
参考

参考

Sorry, the component of entity "EnemyMng" which with an index of 0 is corrupted! It has been removed.