{ "id": "176112", "key": "TIMOB-28382", "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-03-16T14:48:56.000+0000", "created": "2021-03-11T19:10:09.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "regression" ], "versions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2021-03-16T14:48:56.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": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Description\r\n\r\nWhen requiring a native module with liveview enabled it will error on startup with the below, Android does not error on startup however.\r\n\r\n{code}\r\n[ERROR] TypeError: originalRequire is not a function. (In 'originalRequire(moduleId)', 'originalRequire' is undefined)\r\n[ERROR] File: app.js\r\n[ERROR] Line: 7728\r\n[ERROR] SourceId: undefined\r\n[ERROR] Backtrace:\r\n[ERROR] undefined\r\n{code}\r\n\r\nh5.Description\r\n\r\n1. Build kitchensink-v2 to iOS with liveview enabled\r\n\r\nh5.Actual\r\n\r\nErrors with above error on startup\r\n\r\nh5.Expected\r\n\r\nDoes not error", "attachment": [], "flagged": false, "summary": "iOS: Requiring a native module errors when building with liveview", "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": null, "closedSprints": [ { "id": 1219, "state": "closed", "name": "2021 Sprint 5", "startDate": "2021-03-01T19:02:00.000Z", "endDate": "2021-03-12T19:02:00.000Z", "completeDate": "2021-03-15T03:30:49.472Z", "originBoardId": 114 }, { "id": 1220, "state": "closed", "name": "2021 Sprint 6", "startDate": "2021-03-15T03:31:12.088Z", "endDate": "2021-03-27T03:31:00.000Z", "completeDate": "2021-03-26T19:18:15.760Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "458390", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "This can also be reprod by adding a native require to a classic app instead of using KS if you want a faster feedback loop", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-03-11T19:11:13.000+0000", "updated": "2021-03-11T19:11:13.000+0000" }, { "id": "458393", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/liveview/pull/215", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-03-12T13:18:10.000+0000", "updated": "2021-03-12T13:18:10.000+0000" }, { "id": "458404", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "* master: https://github.com/appcelerator/titanium_mobile/pull/12562\r\n* 10_0_X: https://github.com/appcelerator/titanium_mobile/pull/12564\r\n", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-03-12T21:06:49.000+0000", "updated": "2021-03-12T21:06:49.000+0000" }, { "id": "458415", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-15T21:38:46.000+0000", "updated": "2021-03-15T21:38:46.000+0000" }, { "id": "458433", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X for 10.0.0 target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-03-16T14:48:53.000+0000", "updated": "2021-03-16T14:48:53.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }