issues after building to web-mobile/desktop

I know its not the right place to post In English but the Chinese community seems to be more active .

i run into these issues after building the game to web mobile or desktop

i am using Cocos creator 3.0.0 , i’ve tried to build the engine example to the same platform and it seems that it is working , the only difference is that the example that comes with the engine has no Scripts attached with it .
i was using Cocos Creator 3.0.0preview with the same base code and it was working just fine .

to be more specific about tis issues .

this part is what throwing the exception .

after a quick debug

the superClass of class opponent is undefined

Note : Opponent is a child class of PlayerController class.
Note : the game is running normal when testing on browser .

Please can someone help me find the cause of this problem .

It seems superClass of Opponent can not be found, could be related to circular reference, please check how Opponent is importing its super class and what is imported in its super class