{ "id": "175421", "key": "ALOY-1736", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "21028", "description": "", "name": "CLI Release 8.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-08-13T14:39:55.000+0000", "created": "2020-08-07T14:26:00.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2020-08-13T14:39:55.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "If dev dependencies are missing or do not exist in the package.json the following error is seen: \r\n\r\n{code:java}\r\n[INFO] Project created successfully in 19s 632ms\r\n[ERROR] An unknown error occurred\r\n[ERROR] Cannot read property '@titanium-sdk/webpack-plugin-classic' of undefined\r\n\r\n \r\n\r\n2020-08-07T12:53:40.708Z | ERROR | Command failed: \"C:\\Program Files\\nodejs\\node.exe\" \"C:\\Users\\APPC\\.appcelerator\\install\\8.1.0-master.9\\package\\node_modules\\alloy\\bin\\alloy\" new --force . webpack-default\r\n[ERROR] An unknown error occurred\r\n[ERROR] Cannot read property '@titanium-sdk/webpack-plugin-classic' of undefined\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "aloy new fails if dev dependencies do not exist in package.Json", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.18363\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 31.9GB\r\n\r\nNode.js\r\n Node.js Version = 12.16.1\r\n npm Version = 6.13.4\r\n\r\nAppcelerator CLI\r\n Installer = 5.0.0\r\n Core Package = 8.1.0-master.9\r\n\r\nTitanium CLI\r\n CLI Version = 5.2.2\r\n node-appc Version = 0.2.49", "comment": { "comments": [ { "id": "456375", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Test steps:\r\n\r\n1. Create a titanium app {{ti create --name testdevdep --id com.samir.rules --type app}}\r\n2. cd into that dir\r\n3. Create a package.json with just the an empty object {}\r\n4. Run alloy new . webpack-default", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-08-07T14:46:12.000+0000", "updated": "2020-08-07T14:46:12.000+0000" }, { "id": "456378", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "PR: https://github.com/appcelerator/alloy/pull/965", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-08-07T15:12:19.000+0000", "updated": "2020-08-07T15:12:19.000+0000" }, { "id": "456461", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, using CLI version {{8.1.0-master.11}} and following the instructions below in the appc CLI, no error is shown.\r\n# appc new --name testdevdep --id com.samir.rules --type titanium --classic \r\n# cd in to the dir\r\n# create package.json\r\n# add an empty array\r\n# appc alloy new . webpack-default", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-13T14:39:39.000+0000", "updated": "2020-08-13T14:39:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }