hi all, i have a custom class that extends cc.Component
namespace game {
const {ccclass, property} = cc._decorator;
@ccclass
class CustomComponent extends cc.Component{
....
}
}
this works fine and i can use the custom component with the cocos creator IDE
but when i create another component that inherits from the custom component,
namespace game {
const {ccclass, property} = cc._decorator;
@ccclass
class AnotherComponent extends CustomComponent{
....
}
}
the IDE doesnt allow me to import, saying
Can not find cc.Component in the script .
it seems that the cause of the issue is the namespace
when namespaces are removed the issue is solved (but this is really not an option in the case of my project)
is there a solution or workaround for this?