Hi.
I’ m using Cocos Creator version 3.8.2 currently.
I imported assets packages exported by Cocos Creator version 3.4.2.
And scene and code work fine in play mode.
However, sometimes the editor show this error after editing source code (after displaying ‘script compilation in progress’ at bottom right of the editor).
Error: [Scene] component already added
at error (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:160743:12)
at ReusableInvoker.add (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:46349:15)
at ComponentScheduler._scheduleImmediate (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:46618:32)
at ComponentScheduler._onEnabled (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:46483:18)
at OneOffInvoker.eval [as _invoke] (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:46411:29)
at OneOffInvoker.invoke (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:46333:18)
at NodeActivator.activateNode (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:48341:29)
Is Bundle
I tried to rebuild the scene hierarchy step by step.
However, I was unable to determine when the error occurred.
What could cause this error?