使用2.0版本升级1.92旧项目时,旧项目使用的画图插件raphael报错
R.path.js:62 Uncaught ReferenceError: _ccsg is not defined
at R_path.onLoad (R.path.js:62)
at CCClass.activateComp (node-activator.js:304)
at cc_Node.addComponent (base-node.js:957)
at circle.addComponent (CCComponent.js:328)
at circle.onLoad (circle.js:62)
at CCClass.eval [as _invoke] (eval at createInvokeImpl (component-scheduler.js:256),
65)
at CCClass.invoke (component-scheduler.js:154)
at CCClass.activateNode (node-activator.js:227)
at cc_Node._onHierarchyChanged (base-node.js:1140)
at cc_Node._onHierarchyChanged (CCNode.js:1230)
onLoad @ R.path.js:62
activateComp @ node-activator.js:304
addComponent @ base-node.js:957
addComponent @ CCComponent.js:328
onLoad @ circle.js:62
(anonymous) @ VM1985:3
invoke @ component-scheduler.js:154
activateNode @ node-activator.js:227
_onHierarchyChanged @ base-node.js:1140
_onHierarchyChanged @ CCNode.js:1230
setParent @ base-node.js:136
addChild @ CCNode.js:2897
genNewNode @ common.js:71
startAction @ explodeGroup.js:57
testAction @ explodeGroup.js:37
(anonymous) @ main.js:775
(anonymous) @ CCLoader.js:467
(anonymous) @ CCLoader.js:259
(anonymous) @ utils.js:80
setTimeout (async)
callInNextTick @ utils.js:79
(anonymous) @ CCLoader.js:255
117.proto.allComplete @ loading-items.js:528
117.proto.itemComplete @ loading-items.js:716
117.LoadingItems.itemComplete @ loading-items.js:379
120.proto.flowOut @ pipeline.js:319
(anonymous) @ pipeline.js:67
loadUuid @ uuid-loader.js:288
116.Loader.handle @ loader.js:193
flow @ pipeline.js:51
(anonymous) @ pipeline.js:64
(anonymous) @ downloader.js:333
xhr.onload @ text-downloader.js:53
XMLHttpRequest.send (async)
122.module.exports @ text-downloader.js:69
downloadUuid @ downloader.js:199
114.Downloader.handle @ downloader.js:330
flow @ pipeline.js:51
(anonymous) @ pipeline.js:64
(anonymous) @ asset-loader.js:83
queryAssetInfo @ CCAssetLibrary.js:182
109.AssetLoader.handle @ asset-loader.js:49
flow @ pipeline.js:51
120.proto.flowIn @ pipeline.js:275
117.proto.append @ loading-items.js:508
108.proto.load @ CCLoader.js:278
108.proto.loadRes @ CCLoader.js:455
readJson @ main.js:750
delayInit @ main.js:421
32.proto.trigger @ CCScheduler.js:241
32.proto.update @ CCScheduler.js:213
update @ CCScheduler.js:441
mainLoop @ CCDirector.js:944
callback @ CCGame.js:579
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
requestAnimationFrame (async)
callback @ CCGame.js:573
我也一样,同问
这个插件版本不兼容 creator 2.x,看下插件有没有更新。
用1.10就好了