{ "id": "167547", "key": "TIMOB-24674", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-06-20T15:53:34.000+0000", "created": "2017-05-10T15:45:50.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19275", "description": "Patch release for 6.0.x regressions or important fixes", "name": "Release 6.0.3", "archived": false, "released": true, "releaseDate": "2017-03-22" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-08-16T16:54: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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nCarrying over from, TIMOB-24642. The demo app at https://www.dropbox.com/s/m4wy91x92gxw63m/demo.zip?dl=1 when built for windows will throw the error below, it seems to be unable to traverse back through to the top level node_modules to find bar\r\n\r\n{code}\r\n-- Start application log -----------------------------------------------------\r\n[ERROR] Application Error: {\r\n[ERROR] \"line\": 2,\r\n[ERROR] \"column\": 10,\r\n[ERROR] \"message\": \"require: Error while require(/app) require: Error while require(foo) require: Error while require(./lib/foo) require: Could not load module bar\",\r\n[ERROR] \"native_stack\": [\r\n[ERROR] \"JSExportClass::CallNamedFunction\"\r\n[ERROR] ]\r\n[ERROR] }\r\n-- End application log -------------------------------------------------------\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Download the above app\r\n# Build it for Windows\r\n\r\nh5.Actual\r\n\r\nError is thrown\r\n\r\nh5.Expected\r\n\r\nNo error thrown, console should log the below\r\n\r\n[INFO] boz index.js loaded\r\n[INFO] boo boo.js loaded\r\n[INFO] baz index.js loaded\r\n[INFO] bar bar.js loaded\r\n[INFO] foo lib/foo.js loaded\r\n[INFO] foo index.js loaded", "attachment": [], "flagged": false, "summary": "Windows: require call in node_modules directory fails to find module", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 6.0.3.GA", "comment": { "comments": [ { "id": "419612", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile_windows/pull/998\r\n\r\n[~emerriman] This is kinda a partner ticket to TIMOB-24642, but not as bad. Do we want to pull into 6.1.0 or am I too late?", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-05-12T14:50:56.000+0000", "updated": "2017-05-12T14:50:56.000+0000" }, { "id": "426788", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix in SDK Version 7.0.0.v20170815065413 and SDK Version: 6.2.0.v20170815130745\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/998", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-16T16:54:51.000+0000", "updated": "2017-08-16T16:54:51.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }