ts 本地预览可以运行,发布后报Error 3804

this.addComponent(cc.Camera);
this.camera=this.node.getComponent(cc.Camera)

报错:
Error 3804, please go to https://github.com/cocos-creator/engine/blob/master/EngineErrorMap.md#380413 to see details.

各位大神求解啊

你是不是写错了,第一句…this.addComponent(cc.Camera); ===>this.node.addComponent(cc.Camera)

换了也不行

this.camera = this.node.addComponent(cc.Camera);

原来是项目设置这个没勾 但是预览和发布效果不一样