Hi,
I’m getting the following error while building web mobile.
Kindly help!.
2019-11-18T14:47:32.210Z - normal: Load ~/.CocosCreator/settings.json
2019-11-18T14:47:33.348Z - normal: Initializing Asset Database
2019-11-18T14:47:33.350Z - normal: checking language setting…
2019-11-18T14:47:33.350Z - normal: Language: en
2019-11-18T14:47:33.912Z - success: preview server running at http://localhost:7457
2019-11-18T14:47:33.912Z - success: protocol editor-framework registered
2019-11-18T14:47:33.912Z - success: protocol app registered
2019-11-18T14:47:33.912Z - success: protocol theme registered
2019-11-18T14:47:33.912Z - success: protocol packages registered
2019-11-18T14:47:33.913Z - success: protocol uuid registerred
2019-11-18T14:47:33.913Z - success: protocol db registerred
2019-11-18T14:47:33.913Z - success: protocol thumbnail registerred
2019-11-18T14:47:33.913Z - success: protocol unpack registerred
2019-11-18T14:47:33.913Z - success: protocol disable-commonjs registerred
2019-11-18T14:47:36.607Z - normal: connected!
2019-11-18T14:47:36.608Z - normal: Check project E:\RAJAT\CocosProjects\PokerSD
2019-11-18T14:47:36.609Z - normal: Initializing project E:\RAJAT\CocosProjects\PokerSD
2019-11-18T14:47:36.953Z - normal: Initializing Cocos2d
2019-11-18T14:47:37.631Z - normal: Initializing engine extends
2019-11-18T14:47:37.649Z - success: asset-db-debugger loaded
2019-11-18T14:47:37.650Z - success: baidu-adapter loaded
2019-11-18T14:47:37.651Z - success: code-editor loaded
2019-11-18T14:47:37.652Z - success: color-picker loaded
2019-11-18T14:47:37.731Z - success: fb-audience-network loaded
2019-11-18T14:47:37.781Z - success: fb-live-stream loaded
2019-11-18T14:47:37.784Z - success: google-play-instant loaded
2019-11-18T14:47:37.789Z - success: huawei-runtime loaded
2019-11-18T14:47:37.789Z - success: jsb-adapter loaded
2019-11-18T14:47:37.793Z - success: oppo-runtime loaded
2019-11-18T14:47:37.796Z - success: package-manager loaded
2019-11-18T14:47:37.897Z - success: qqplay-adapter loaded
2019-11-18T14:47:37.899Z - success: runtime-dev-tools loaded
2019-11-18T14:47:37.902Z - success: sdkbox loaded
2019-11-18T14:47:37.905Z - success: tester loaded
2019-11-18T14:47:37.907Z - success: ui-grid loaded
2019-11-18T14:47:37.908Z - success: ui-kit-preview-extra loaded
2019-11-18T14:47:37.910Z - success: ui-kit-preview loaded
2019-11-18T14:47:37.911Z - success: ui-kit loaded
2019-11-18T14:47:37.912Z - success: ui-tree loaded
2019-11-18T14:47:37.916Z - success: vivo-runtime loaded
2019-11-18T14:47:37.917Z - success: weapp-adapter loaded
2019-11-18T14:47:37.952Z - success: assets loaded
2019-11-18T14:47:37.954Z - success: builder loaded
2019-11-18T14:47:38.195Z - success: cocos-services loaded
2019-11-18T14:47:38.198Z - success: console loaded
2019-11-18T14:47:38.228Z - success: fb-instant-games loaded
2019-11-18T14:47:38.229Z - success: google-instant-games loaded
2019-11-18T14:47:38.233Z - success: hierarchy loaded
2019-11-18T14:47:38.235Z - success: inspector loaded
2019-11-18T14:47:38.237Z - success: keystore loaded
2019-11-18T14:47:38.240Z - success: node-library loaded
2019-11-18T14:47:38.242Z - success: package-asset loaded
2019-11-18T14:47:38.243Z - success: preferences loaded
2019-11-18T14:47:38.244Z - success: project-exporter loaded
2019-11-18T14:47:38.246Z - success: project-importer loaded
2019-11-18T14:47:38.247Z - success: project-settings loaded
2019-11-18T14:47:38.250Z - success: scene loaded
2019-11-18T14:47:38.252Z - success: simulator-debugger loaded
2019-11-18T14:47:38.254Z - success: sprite-editor loaded
2019-11-18T14:47:38.257Z - success: store loaded
2019-11-18T14:47:38.261Z - success: timeline loaded
2019-11-18T14:47:54.272Z - normal: Loading packages
2019-11-18T14:47:54.272Z - normal: Watching packages
2019-11-18T14:47:54.803Z - normal: Run Application
2019-11-18T14:48:21.466Z - normal: Start building with options : {
“actualPlatform”: “web-mobile”,
“android-instant”: {
“REMOTE_SERVER_ROOT”: “”,
“host”: “”,
“pathPattern”: “”,
“recordPath”: “”,
“scheme”: “https”,
“skipRecord”: false
},
“apiLevel”: “”,
“appABIs”: [],
“appBundle”: false,
“baidugame”: {
“REMOTE_SERVER_ROOT”: “”,
“appid”: “testappid”,
“orientation”: “portrait”,
“subContext”: “”
},
“buildPath”: “E:\RAJAT\CocosProjects\PokerSD\build”,
“debug”: false,
“dest”: “E:\RAJAT\CocosProjects\PokerSD\build\web-mobile”,
“embedWebDebugger”: false,
“encryptJs”: true,
“excludeScenes”: [
“c97e17d4-91c5-4efe-a2bb-f9f277a11496”,
“38afa2ed-1f78-4296-ae29-f98072ade05b”,
“cbd6f65d-eaba-4b21-a896-79ba1f671fe5”,
“95f21ec5-b986-48fa-b748-1fa927a742cc”,
“96a75b08-bf54-4348-a04f-64762d978820”,
“5284cc71-979f-4fa6-ac3b-78498fd2ba2d”
],
“excludedModules”: [
“Physics”,
“Chipmunk”,
“DragonBones”,
“Collider”
],
“fb-instant-games”: {},
“includeSDKBox”: false,
“inlineSpriteFrames”: true,
“inlineSpriteFrames_native”: false,
“md5Cache”: false,
“mergeStartScene”: false,
“optimizeHotUpdate”: true,
“orientation”: {
“landscapeLeft”: true,
“landscapeRight”: true,
“portrait”: false,
“upsideDown”: false
},
“packageName”: “com.poker.sd”,
“platform”: “web-mobile”,
“previewHeight”: “720”,
“previewWidth”: “1280”,
“qqplay”: {
“orientation”: “portrait”
},
“scenes”: [
“67b96951-31b2-4214-9446-10ad6e323d13”
],
“sourceMaps”: false,
“startScene”: “67b96951-31b2-4214-9446-10ad6e323d13”,
“template”: “link”,
“title”: “PokerSD”,
“useDebugKeystore”: true,
“vsVersion”: “auto”,
“webOrientation”: “landscape”,
“wechatgame”: {
“appid”: “wx6ac3f5090a6b99c5”,
“orientation”: “portrait”
},
“xxteaKey”: “86fb1281-1654-4e”,
“zipCompressJs”: true,
“project”: “E:\RAJAT\CocosProjects\PokerSD”,
“projectName”: “PokerSD”,
“debugBuildWorker”: false
}
2019-11-18T14:48:21.469Z - normal: Building E:\RAJAT\CocosProjects\PokerSD
2019-11-18T14:48:21.469Z - normal: Destination E:\RAJAT\CocosProjects\PokerSD\build\web-mobile
2019-11-18T14:48:21.555Z - normal: Delete E:\RAJAT\CocosProjects\PokerSD\build\web-mobile\subpackages//,E:\RAJAT\CocosProjects\PokerSD\build\web-mobile**
2019-11-18T14:48:28.533Z - normal: Start building assets
2019-11-18T14:48:28.534Z - normal: Start spawn build-worker
2019-11-18T14:48:29.071Z - normal: Finish spawn build-worker
2019-11-18T14:48:29.071Z - normal: Start init build-worker
2019-11-18T14:48:31.672Z - normal: Finish init build-worker
2019-11-18T14:48:31.672Z - normal: Start build-assets in worker
2019-11-18T14:48:33.904Z - normal: Finish build-assets in worker
2019-11-18T14:48:33.924Z - normal: Finish building assets
2019-11-18T14:48:34.010Z - normal: Start building plugin scripts
2019-11-18T14:48:34.025Z - normal: Generating main.js from C:\CocosCreator_2.0.9\resources\static\build-templates\shares\main.js
2019-11-18T14:48:34.034Z - normal: Generating html from C:\CocosCreator_2.0.9\resources\static\build-templates\web-mobile\template\index.html
2019-11-18T14:48:34.129Z - error: SyntaxError: Unexpected token
in JSON at position 1211
at JSON.parse ()
at Object.l [as readJson] (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\utils.js:1:649)
at Object.readEnableService (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\serviceConfig.js:1:662)
at Object.execInstallNativePlatformScript (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\ccServices.js:1:2875)
at s (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\main.js:1:315)
at C:\CocosCreator_2.0.9\resources\app.asar\editor-framework\lib\share\polyfills.js:1:286
at Promise ()
at C:\CocosCreator_2.0.9\resources\app.asar\editor-framework\lib\share\polyfills.js:1:260
at C:\CocosCreator_2.0.9\resources\app.asar\editor\lib\builder\index.js:1:858
at
at then.e (C:\CocosCreator_2.0.9\resources\app.asar\editor\lib\builder\index.js:1:885)
at
2019-11-18T14:48:34.131Z - error: Build Failed: SyntaxError: Unexpected token
in JSON at position 1211
at JSON.parse ()
at Object.l [as readJson] (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\utils.js:1:649)
at Object.readEnableService (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\serviceConfig.js:1:662)
at Object.execInstallNativePlatformScript (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\ccServices.js:1:2875)
at s (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\main.js:1:315)
at C:\CocosCreator_2.0.9\resources\app.asar\editor-framework\lib\share\polyfills.js:1:286
at Promise ()
at C:\CocosCreator_2.0.9\resources\app.asar\editor-framework\lib\share\polyfills.js:1:260
at C:\CocosCreator_2.0.9\resources\app.asar\editor\lib\builder\index.js:1:858
at
at r.waterfall.r (C:\CocosCreator_2.0.9\resources\app.asar\editor\lib\builder\index.js:1:3393)
at C:\CocosCreator_2.0.9\resources\app.asar\node_modules\async\lib\async.js:52:16
at C:\CocosCreator_2.0.9\resources\app.asar\node_modules\async\lib\async.js:696:30
at C:\CocosCreator_2.0.9\resources\app.asar\node_modules\async\lib\async.js:167:37
at C:\CocosCreator_2.0.9\resources\app.asar\node_modules\async\lib\async.js:1209:30
at Gulp.doneCallback (C:\CocosCreator_2.0.9\resources\app.asar\editor\core\gulp-build.js:1:27675)
at Gulp.Orchestrator.stop (C:\CocosCreator_2.0.9\resources\app.asar\node_modules\orchestrator\index.js:150:9)
at C:\CocosCreator_2.0.9\resources\app.asar\node_modules\orchestrator\index.js:277:22
at finish (C:\CocosCreator_2.0.9\resources\app.asar\node_modules\orchestrator\lib\runTask.js:21:8)
2019-11-18T14:48:45.519Z - normal: Start building with options : {
“actualPlatform”: “web-mobile”,
“android-instant”: {
“REMOTE_SERVER_ROOT”: “”,
“host”: “”,
“pathPattern”: “”,
“recordPath”: “”,
“scheme”: “https”,
“skipRecord”: false
},
“apiLevel”: “”,
“appABIs”: [],
“appBundle”: false,
“baidugame”: {
“REMOTE_SERVER_ROOT”: “”,
“appid”: “testappid”,
“orientation”: “portrait”,
“subContext”: “”
},
“buildPath”: “E:\RAJAT\CocosProjects\PokerSD\build”,
“debug”: false,
“dest”: “E:\RAJAT\CocosProjects\PokerSD\build\web-mobile”,
“embedWebDebugger”: false,
“encryptJs”: true,
“excludeScenes”: [
“c97e17d4-91c5-4efe-a2bb-f9f277a11496”,
“38afa2ed-1f78-4296-ae29-f98072ade05b”,
“cbd6f65d-eaba-4b21-a896-79ba1f671fe5”,
“95f21ec5-b986-48fa-b748-1fa927a742cc”,
“96a75b08-bf54-4348-a04f-64762d978820”,
“5284cc71-979f-4fa6-ac3b-78498fd2ba2d”
],
“excludedModules”: [
“Physics”,
“Chipmunk”,
“DragonBones”,
“Collider”
],
“fb-instant-games”: {},
“includeSDKBox”: false,
“inlineSpriteFrames”: true,
“inlineSpriteFrames_native”: false,
“md5Cache”: true,
“mergeStartScene”: false,
“optimizeHotUpdate”: true,
“orientation”: {
“landscapeLeft”: true,
“landscapeRight”: true,
“portrait”: false,
“upsideDown”: false
},
“packageName”: “com.poker.sd”,
“platform”: “web-mobile”,
“previewHeight”: “720”,
“previewWidth”: “1280”,
“qqplay”: {
“orientation”: “portrait”
},
“scenes”: [
“67b96951-31b2-4214-9446-10ad6e323d13”
],
“sourceMaps”: false,
“startScene”: “67b96951-31b2-4214-9446-10ad6e323d13”,
“template”: “link”,
“title”: “PokerSD”,
“useDebugKeystore”: true,
“vsVersion”: “auto”,
“webOrientation”: “landscape”,
“wechatgame”: {
“appid”: “wx6ac3f5090a6b99c5”,
“orientation”: “portrait”
},
“xxteaKey”: “86fb1281-1654-4e”,
“zipCompressJs”: true,
“project”: “E:\RAJAT\CocosProjects\PokerSD”,
“projectName”: “PokerSD”,
“debugBuildWorker”: false
}
2019-11-18T14:48:45.520Z - normal: Building E:\RAJAT\CocosProjects\PokerSD
2019-11-18T14:48:45.521Z - normal: Destination E:\RAJAT\CocosProjects\PokerSD\build\web-mobile
2019-11-18T14:48:45.521Z - normal: Delete E:\RAJAT\CocosProjects\PokerSD\build\web-mobile\subpackages//,E:\RAJAT\CocosProjects\PokerSD\build\web-mobile**
2019-11-18T14:48:52.714Z - normal: Start building assets
2019-11-18T14:48:52.714Z - normal: Start spawn build-worker
2019-11-18T14:48:53.265Z - normal: Finish spawn build-worker
2019-11-18T14:48:53.265Z - normal: Start init build-worker
2019-11-18T14:48:55.877Z - normal: Finish init build-worker
2019-11-18T14:48:55.877Z - normal: Start build-assets in worker
2019-11-18T14:48:58.060Z - normal: Finish build-assets in worker
2019-11-18T14:48:58.067Z - normal: Finish building assets
2019-11-18T14:48:58.145Z - normal: Start building plugin scripts
2019-11-18T14:48:58.160Z - normal: Generating main.js from C:\CocosCreator_2.0.9\resources\static\build-templates\shares\main.js
2019-11-18T14:48:58.203Z - normal: Generating html from C:\CocosCreator_2.0.9\resources\static\build-templates\web-mobile\template\index.html
2019-11-18T14:48:58.214Z - error: SyntaxError: Unexpected token
in JSON at position 1211
at JSON.parse ()
at Object.l [as readJson] (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\utils.js:1:649)
at Object.readEnableService (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\serviceConfig.js:1:662)
at Object.execInstallNativePlatformScript (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\ccServices.js:1:2875)
at s (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\main.js:1:315)
at C:\CocosCreator_2.0.9\resources\app.asar\editor-framework\lib\share\polyfills.js:1:286
at Promise ()
at C:\CocosCreator_2.0.9\resources\app.asar\editor-framework\lib\share\polyfills.js:1:260
at C:\CocosCreator_2.0.9\resources\app.asar\editor\lib\builder\index.js:1:858
at
at then.e (C:\CocosCreator_2.0.9\resources\app.asar\editor\lib\builder\index.js:1:885)
at
2019-11-18T14:48:58.214Z - error: Build Failed: SyntaxError: Unexpected token
in JSON at position 1211
at JSON.parse ()
at Object.l [as readJson] (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\utils.js:1:649)
at Object.readEnableService (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\serviceConfig.js:1:662)
at Object.execInstallNativePlatformScript (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\panel\utils\ccServices.js:1:2875)
at s (C:\CocosCreator_2.0.9\resources\app.asar\editor\builtin\cocos-services\main.js:1:315)
at C:\CocosCreator_2.0.9\resources\app.asar\editor-framework\lib\share\polyfills.js:1:286
at Promise ()
at C:\CocosCreator_2.0.9\resources\app.asar\editor-framework\lib\share\polyfills.js:1:260
at C:\CocosCreator_2.0.9\resources\app.asar\editor\lib\builder\index.js:1:858
at
at r.waterfall.r (C:\CocosCreator_2.0.9\resources\app.asar\editor\lib\builder\index.js:1:3393)
at C:\CocosCreator_2.0.9\resources\app.asar\node_modules\async\lib\async.js:52:16
at C:\CocosCreator_2.0.9\resources\app.asar\node_modules\async\lib\async.js:696:30
at C:\CocosCreator_2.0.9\resources\app.asar\node_modules\async\lib\async.js:167:37
at C:\CocosCreator_2.0.9\resources\app.asar\node_modules\async\lib\async.js:1209:30
at Gulp.doneCallback (C:\CocosCreator_2.0.9\resources\app.asar\editor\core\gulp-build.js:1:27675)
at Gulp.Orchestrator.stop (C:\CocosCreator_2.0.9\resources\app.asar\node_modules\orchestrator\index.js:150:9)
at C:\CocosCreator_2.0.9\resources\app.asar\node_modules\orchestrator\index.js:277:22
at finish (C:\CocosCreator_2.0.9\resources\app.asar\node_modules\orchestrator\lib\runTask.js:21:8)