2.2.1 loadScene error when build android or web mobile

2.2.1 loadScene error when build android or web mobile
0

I’m using loadscene : cc.director.loadScene(‘test’);

I run localhost in web browser , I have no error.
when i build web-mobile or android , i have error.
Uncaught TypeError: Cannot convert undefined or null to object
at Function.getOwnPropertyNames ()
at visitComponent (cocos2d-js.805bb.js:22696)
at visitNode (cocos2d-js.805bb.js:22712)
at visitNode (cocos2d-js.805bb.js:22713)
at visitNode (cocos2d-js.805bb.js:22713)
at visitNode (cocos2d-js.805bb.js:22713)
at visitNode (cocos2d-js.805bb.js:22713)
at visitNode (cocos2d-js.805bb.js:22713)
at visitNode (cocos2d-js.805bb.js:22713)
at visitNode (cocos2d-js.805bb.js:22713)

Please help me , @yinjimmy @slackmoehrle @jare

fix it plz.