开发者工具, 手动上传代码成功,
使用命令行上传则失败,
本身是用1.05.x 版本进行代码上传的, 由于准备使用代码加固攻击, 把微信开发者工具升级到了1.06.x;
退回1.05.x后cli上传代码恢复正常;
以下是命令
D:/Softs/微信web开发者工具/cli upload
project.config.json :
{
...
"libVersion": "3.6.0",
}
以下是报错
✖ compile_start
>>>>>: [error] {
code: 10,
message: 'Error: 错误 Error: project.config.json: libVersion 字段需为 string, string\n' +
' at throwError (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\utils\\common.js:2:1102)\n' +
' at transValidateResult (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\validate\\schemaValidate.js:1:2267)\n' +
' at D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\projectconfig.js:2:1502\n' +
' at i.scheduler (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:1702)\n' +
' at r (D:\\Softs\\微信web开发者工具\\code\\package.nw\\node_modules.wxvpkg\\@vue\\reactivity\\dist\\reactivity.cjs.prod.js:1:686)\n' +
' at effect (D:\\Softs\\微信web开发者工具\\code\\package.nw\\node_modules.wxvpkg\\@vue\\reactivity\\dist\\reactivity.cjs.prod.js:1:381)\n' +
' at ReactiveJSONCompiler.registerOrGet (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:1682)\n' +
' at D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:3413\n' +
' at getProjectConfigJSON (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\projectconfig.js:2:2250)\n' +
' at D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\game.js:2:10617\n' +
' at i.scheduler (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:1702)\n' +
' at r (D:\\Softs\\微信web开发者工具\\code\\package.nw\\node_modules.wxvpkg\\@vue\\reactivity\\dist\\reactivity.cjs.prod.js:1:686)\n' +
' at effect (D:\\Softs\\微信web开发者工具\\code\\package.nw\\node_modules.wxvpkg\\@vue\\reactivity\\dist\\reactivity.cjs.prod.js:1:381)\n' +
' at ReactiveJSONCompiler.registerOrGet (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:1682)\n' +
' at D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:3413\n' +
' at getGameJSON (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\index.js:2:3352)\n' +
' at async Object.getMiniGameNameMapping (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\2605d629a4b2211be6b7c7de22f1048a.js:2:2179)\n' +
' at async module.exports (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\85036c20e6c54236c6319f5b22395a0f.js:2:1963)\n' +
' at async le.compile (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\7300e03e942b3e0af0eab533fabc7c30.js:2:24238)\n' +
' at async le.run (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\7300e03e942b3e0af0eab533fabc7c30.js:2:25361)\n' +
' at async s.lazyRun (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\c082f07fdaffce7bfae7c321aa6b86a4.js:2:565) (code 10)Error: 错误 Error: project.config.json: libVersion 字段需为 string, string\n' +
' at throwError (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\utils\\common.js:2:1102)\n' +
' at transValidateResult (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\validate\\schemaValidate.js:1:2267)\n' +
' at D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\projectconfig.js:2:1502\n' +
' at i.scheduler (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:1702)\n' +
' at r (D:\\Softs\\微信web开发者工具\\code\\package.nw\\node_modules.wxvpkg\\@vue\\reactivity\\dist\\reactivity.cjs.prod.js:1:686)\n' +
' at effect (D:\\Softs\\微信web开发者工具\\code\\package.nw\\node_modules.wxvpkg\\@vue\\reactivity\\dist\\reactivity.cjs.prod.js:1:381)\n' +
' at ReactiveJSONCompiler.registerOrGet (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:1682)\n' +
' at D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:3413\n' +
' at getProjectConfigJSON (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\projectconfig.js:2:2250)\n' +
' at D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\game.js:2:10617\n' +
' at i.scheduler (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:1702)\n' +
' at r (D:\\Softs\\微信web开发者工具\\code\\package.nw\\node_modules.wxvpkg\\@vue\\reactivity\\dist\\reactivity.cjs.prod.js:1:686)\n' +
' at effect (D:\\Softs\\微信web开发者工具\\code\\package.nw\\node_modules.wxvpkg\\@vue\\reactivity\\dist\\reactivity.cjs.prod.js:1:381)\n' +
' at ReactiveJSONCompiler.registerOrGet (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:1682)\n' +
' at D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\json\\reactiveCache.js:2:3413\n' +
' at getGameJSON (D:\\Softs\\微信web开发者工具\\code\\package.nw\\js\\common\\miniprogram-builder\\modules\\corecompiler\\original\\index.js:2:3352)\n' +
' at async Object.getMiniGameNameMapping (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\2605d629a4b2211be6b7c7de22f1048a.js:2:2179)\n' +
' at async module.exports (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\85036c20e6c54236c6319f5b22395a0f.js:2:1963)\n' +
' at async le.compile (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\7300e03e942b3e0af0eab533fabc7c30.js:2:24238)\n' +
' at async le.run (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\7300e03e942b3e0af0eab533fabc7c30.js:2:25361)\n' +
' at async s.lazyRun (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\c082f07fdaffce7bfae7c321aa6b86a4.js:2:565) (code 10)\n' +
' at Object.GENERIC_ERROR (D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\7201d239ccdbdc262e2ecf5fe0c8aca3.js:2:93)\n' +
' at D:\\Softs\\微信web开发者工具\\code\\package.nw\\core.wxvpkg\\e957e476922cb230973a914ab0c2cdac.js:2:4343'
}