cocoscreator 2.12 发布运行失败

  • Creator 版本:2.1.2

  • 目标平台:Web

  • 详细报错信息,包含调用堆栈:
    Uncaught TypeError: Cannot read property ‘_owner’ of undefined
    at Function.getInstantiatedMaterial (index.html:175)
    at CCClass.250.r._switchGrayMaterial (index.html:175)
    at CCClass._updateDisabledState (index.html:175)
    at CCClass._updateState (index.html:175)
    at CCClass.__preload (index.html:175)
    at CCClass.eval [as _invoke] (eval at p (index.html:2), :3:65)
    at CCClass.invoke (index.html:175)
    at CCClass.activateNode (index.html:175)
    at CCClass._activate (index.html:175)
    at 28.cc.Director.runSceneImmediate (index.html:175)
    这是我的项目
    index.html.zip (749.7 KB)

  • 出现概率:100%

  • 额外线索:1、helloworld项目没问题,2、旧版本编译成功运行的项目,用新版本打开后重新编译,一样的报错,3、新版本创建的新项目,预览没问题,但是发布运行报错

@Jno 求看

index 2.html.zip (749.8 KB)
Uncaught TypeError: Cannot read property ‘_owner’ of undefined
at Function.getInstantiatedMaterial (index 2.html:175)
at CCClass.250.r._switchGrayMaterial (index 2.html:175)
at CCClass._updateDisabledState (index 2.html:175)
at CCClass._updateState (index 2.html:175)
at CCClass.__preload (index 2.html:175)
at CCClass.eval [as _invoke] (eval at p (index 2.html:2), :3:65)
at CCClass.invoke (index 2.html:175)
at CCClass.activateNode (index 2.html:175)
at CCClass._activate (index 2.html:175)
at 28.cc.Director.runSceneImmediate (index 2.html:175):

Failed to load resource: the server responded with a status of 404 (Not Found)
cocos2d-js-min.js:1 Uncaught TypeError: Cannot read property ‘createData’ of undefined
at CCClass._updateAssembler (cocos2d-js-min.js:1)
at CCClass.onEnable (cocos2d-js-min.js:1)
at CCClass.onEnable (cocos2d-js-min.js:1)
at CCClass.invokeOnEnable [as _invoke] (cocos2d-js-min.js:1)
at CCClass.invoke (cocos2d-js-min.js:1)
at CCClass.activateNode (cocos2d-js-min.js:1)
at CCClass._activate (cocos2d-js-min.js:1)
at 28.cc.Director.runSceneImmediate (cocos2d-js-min.js:1)
at cocos2d-js-min.js:1
at y. (cocos2d-js-min.js:1)
cocos2d-js-min.js:1 Uncaught TypeError: Cannot read property ‘updateRenderData’ of undefined
at p.212.y._updateRenderData (cocos2d-js-min.js:1)
at p.212.y._worldTransform (cocos2d-js-min.js:1)
at p.212.y._localTransform (cocos2d-js-min.js:1)
at p.212.y._children (cocos2d-js-min.js:1)
at p.212.y._worldTransform (cocos2d-js-min.js:1)
at p.212.y._localTransform (cocos2d-js-min.js:1)
at p.212.y._children (cocos2d-js-min.js:1)
at p.212.y._worldTransform (cocos2d-js-min.js:1)
at p.212.y._localTransform (cocos2d-js-min.js:1)
at p.b [as _func] (cocos2d-js-min.js:1)

解决了大神,我也碰到了

请问怎么解决的

大佬怎么解决的

自己回复一下 吧,这个可能是因为升级后,新的sprite有自带的材质模块,把隐藏的节点都点开一下就行了