{ "id": "176182", "key": "TIMOB-28440", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-05-11T10:41:49.000+0000", "created": "2021-05-06T18:49:17.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "build", "node", "production" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-05-11T10:41:49.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I know it is not supported officially but I'm giving nodejs 14.16.1 a try. \r\nBuilding debug versions works fine. Just creating a store build will crash with:\r\n\r\n{code}\r\n[INFO] Analyzing module files\r\n[INFO] Processing JavaScript files\r\n[ERROR] TypeError [ERR_INVALID_ARG_TYPE]: The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Object\r\n at writeFile (fs.js:1436:5)\r\n at go$writeFile (/home/user/.titanium/mobilesdk/linux/10.0.0/node_modules/graceful-fs/graceful-fs.js:139:14)\r\n at Object.writeFile (/home/user/.titanium/mobilesdk/linux/10.0.0/node_modules/graceful-fs/graceful-fs.js:136:12)\r\n at /home/user/.titanium/mobilesdk/linux/10.0.0/node_modules/universalify/index.js:10:14\r\n at new Promise ()\r\n at Object.writeFile (/home/user/.titanium/mobilesdk/linux/10.0.0/node_modules/universalify/index.js:7:14)\r\n at AndroidBuilder.writeEnvironmentVariables (/home/user/.titanium/mobilesdk/linux/10.0.0/android/cli/commands/_build.js:2573:11)\r\n at AndroidBuilder.copyResources (/home/user/.titanium/mobilesdk/linux/10.0.0/android/cli/commands/_build.js:2724:8)\r\n at async AndroidBuilder.generateAppProject (/home/user/.titanium/mobilesdk/linux/10.0.0/android/cli/commands/_build.js:2261:2)\r\n at async AndroidBuilder.run (/home/user/.titanium/mobilesdk/linux/10.0.0/android/cli/commands/_build.js:1545:3)\r\n{code}\r\n\r\n*Setup:*\r\n* Fedora Linux 34\r\n* node 14.16.1\r\n* titanium 5.3.1\r\n* ti sdk 10.0.0.RC\r\n* alloy 1.16.0", "attachment": [], "flagged": false, "summary": "Android: Production builds crash if Node 14 is installed", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "458652", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This looks like a bug in our build script.\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/android/cli/commands/_build.js#L2571-L2580\r\n\r\nWe should change the following...\r\n{code:javascript}\r\nawait fs.writeFile(\r\n\tenvVarsFile,\r\n\t// for non-development builds, DO NOT WRITE OUT ENV VARIABLES TO APP\r\n\tthis.writeEnvVars ? JSON.stringify(process.env) : {}\r\n);\r\n{code}\r\n\r\n...to quote the empty curly braces like this...\r\n{code:javascript}\r\nthis.writeEnvVars ? JSON.stringify(process.env) : '{}'\r\n{code}\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-05-06T20:23:26.000+0000", "updated": "2021-05-06T20:23:26.000+0000" }, { "id": "458654", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12782", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-05-07T00:26:24.000+0000", "updated": "2021-05-07T00:26:24.000+0000" }, { "id": "458665", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks, working fine (y)", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2021-05-08T12:39:47.000+0000", "updated": "2021-05-08T12:39:47.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }