使用protobufjs报了2个错,不知道原因.
Simulator: E/jswrapper (236): [ERROR] Failed to invoke require, location: …\cocos\scripting\js-bindings\manual\jsb_global.cpp:236
at HTMLElement.print-simulator-log (C:\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1487)
at Object.e._dispatch (C:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
at EventEmitter.o.on.s (C:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:2917)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:204:7)
Simulator: E/jswrapper (271): ERROR: Uncaught ReferenceError: protobuf is not defined, location: C:/Users/chentaichao/Desktop/Demo/assets/Scripts/proto.js:0:0
STACK:
[0]anonymous@C:/Users/chentaichao/Desktop/Demo/assets/Scripts/proto.js:4
[1]downloadScript@jsb-adapter/engine/jsb-loader.js:29
[2]115.Downloader.handle@src/cocos2d-jsb.js:20898
[3]flow@src/cocos2d-jsb.js:21608
[4]flow@src/cocos2d-jsb.js:21626
[5]122.proto.flowIn@src/cocos2d-jsb.js:21681
[6]119.proto.append@src/cocos2d-jsb.js:21334
[7]109.proto.load@src/cocos2d-jsb.js:20178
[8]prepare@src/cocos2d-jsb.js:7223
[9]run@src/cocos2d-jsb.js:7232
[10]boot@main.js:84
[11]anonymous@main.js:92
[12]anonymous@main.js:94
at HTMLElement.print-simulator-log (C:\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1487)
at Object.e._dispatch (C:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
at EventEmitter.o.on.s (C:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:2917)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:204:7)