-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duplicated defined ccclass in js plugin scripts #15847
Comments
https://github.com/cocos/cocos-editor/pull/2259 这个引入的问题,浏览器预览时都会触发脚本重新执行。 |
please take a look @yanOO1497 @changhua0118 |
加载脚本之前不会自己会清空缓存吗? 为什么会有重复 ID 的警告? |
The ccclass registration in the plugin script works correctly during the initial startup, but when attempting to register the script again after subsequent reloads, it results in a duplicate registration error. please check if it's possible to clear the registered cache before loading the plugin script to registe class or component? @PPpro |
The same issues also exist in build task. |
Plugins should not be executed repeatedly. |
it seems there are 2 issues here:
|
ccclass is register in local variable |
The text was updated successfully, but these errors were encountered: