命令行 .\CocosCreator.exe --path ~~~ --build "platform=wechatgame;~~~“
2.0.4 构建过程中是会加载 packages 插件的内容的。
2.1.0 构建过程中没有相关加载信息,而是抛出了下列错误。
-
Creator 版本:2.1.0
-
目标平台:
-
详细报错信息,包含调用堆栈:
[20896] timeline loaded
Failed to update data: update_out is null or out_len is 0init QuickCompiler: 3400.015ms
[20896] Error: SyntaxError: Unexpected token p in JSON at position 0
at JSON.parse ()
at EventEmitter._getOptionsFromCommand (C:\CocosCreator\2.1.0\resources\app.asar\editor\lib\builder\index.js:1:1706)
at EventEmitter.buildCommand (C:\CocosCreator\2.1.0\resources\app.asar\editor\lib\builder\index.js:1:3516)
at string.Editor._buildCommand.Promise (C:\CocosCreator\2.1.0\resources\app.asar\editor\index.js:1:1377)
at Promise ()
at Object.exports.startup (C:\CocosCreator\2.1.0\resources\app.asar\editor\index.js:1:1342)
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
at EventEmitter._getOptionsFromCommand (C:\CocosCreator\2.1.0\resources\app.asar\editor\lib\builder\index.js:1:1761)
at EventEmitter.buildCommand (C:\CocosCreator\2.1.0\resources\app.asar\editor\lib\builder\index.js:1:3516)
at string.Editor._buildCommand.Promise (C:\CocosCreator\2.1.0\resources\app.asar\editor\index.js:1:1377)
at Promise ()
at Object.exports.startup (C:\CocosCreator\2.1.0\resources\app.asar\editor\index.js:1:1342)
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
Start to build platform [wechatgame] -
重现方式:命令行 .\CocosCreator.exe --path ~~~ --build "platform=wechatgame;~~~“ 构建对应项目。
-
之前哪个版本是正常的 :2.0.4
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :win10
-
编辑器之前是否有其它报错 :
-
出现概率:100%
-
额外线索: