报错:Cannot set property 'lineWidth' of null
代码:nodeDebugLine = new cc.Node;
this.node.addChild(nodeDebugLine, 0, "DebugLine" );
let graphics = nodeDebugLine.addComponent(cc.Graphics);
graphics.lineWidth = 4;
想问一下在哪可以看到构建的时候打包了哪些模块? 浏览器上是没问题的 打包出来就报错了,开始是没勾选Graphics ,后面打包的时候勾选上了,还是报错。。。