一个非常头疼的问题,为何我构建了一次OPPO Mini Game之后,再去构建Wechat Game, 就总是会出错,并且构建目录出现莫名其妙的jsb-adapter,并且在build/wechatgame的同级,还出现quickgame目录。
这个问题看起来极其严重,简直就是莫名其妙:
[18836] Checking config file E:\MyProjects\Funland\FunlandClient\build\wechatgame
[18836] Error: { Error: ENOENT: no such file or directory, open 'E:\MyProjects\Funland\FunlandClient\build\wechatgame\main.js'
at Object.fs.openSync (fs.js:584:18)
at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:191:20)
at Object.fs.readFileSync (fs.js:491:33)
at Object.fs.readFileSync (ELECTRON_ASAR.js:528:29)
at handleMainJs (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\builtin\oppo-runtime\build-runtime.js:461:25)
at onBeforeBuildFinish (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\builtin\oppo-runtime\build-runtime.js:175:5)
at Object.loadRuntimeSettings (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\builtin\oppo-runtime\build-runtime.js:642:5)
at emitTwo (events.js:106:13)
at EventEmitter.emit (events.js:194:7)
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2309
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'E:\\MyProjects\\Funland\\FunlandClient\\build\\wechatgame\\main.js' }
at then.e (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:885)
at <anonymous>
at runMicrotasksCallback (internal/process/next_tick.js:64:5)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
[18836] Error: Build Failed: Error: ENOENT: no such file or directory, open 'E:\MyProjects\Funland\FunlandClient\build\wechatgame\main.js'
at Object.fs.openSync (fs.js:584:18)
at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:191:20)
at Object.fs.readFileSync (fs.js:491:33)
at Object.fs.readFileSync (ELECTRON_ASAR.js:528:29)
at handleMainJs (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\builtin\oppo-runtime\build-runtime.js:461:25)
at onBeforeBuildFinish (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\builtin\oppo-runtime\build-runtime.js:175:5)
at Object.loadRuntimeSettings (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\builtin\oppo-runtime\build-runtime.js:642:5)
at emitTwo (events.js:106:13)
at EventEmitter.emit (events.js:194:7)
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2309
at r.waterfall.r (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:3197)
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:52:16
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:1209:30
at then.e (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:894)
at <anonymous>
at runMicrotasksCallback (internal/process/next_tick.js:64:5)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
[18836] Error: { Error: ENOENT: no such file or directory, open 'E:\MyProjects\Funland\FunlandClient\build\wechatgame\main.js'
at Object.fs.openSync (fs.js:584:18)
at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:191:20)
at Object.fs.readFileSync (fs.js:491:33)
at Object.fs.readFileSync (ELECTRON_ASAR.js:528:29)
at handleMainJs (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\builtin\oppo-runtime\build-runtime.js:461:25)
at onBeforeBuildFinish (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\builtin\oppo-runtime\build-runtime.js:175:5)
at Object.loadRuntimeSettings (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\builtin\oppo-runtime\build-runtime.js:642:5)
at emitTwo (events.js:106:13)
at EventEmitter.emit (events.js:194:7)
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2309
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'E:\\MyProjects\\Funland\\FunlandClient\\build\\wechatgame\\main.js' }
at Editor.Builder.buildCommand.e (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor\index.js:1:1434)
at r.series.e (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:4405)
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:726:13
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:52:16
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:264:21
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:44:16
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:723:17
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:167:37
at r.waterfall.r (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:3470)
ReferenceError: error is not defined
at Editor.Builder.buildCommand.e (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor\index.js:1:1459)
at r.series.e (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:4405)
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:726:13
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:52:16
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:264:21
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:44:16
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:723:17
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:167:37
at r.waterfall.r (E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:3470)
at E:\MyProjects\Funland\FunlandClient\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:52:16
No such file or directory at E:\MyProjects\Funland\FunlandTools\BuildWechat.pl line 248.