{ "id": "173893", "key": "TIMOB-27251", "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": [], "resolution": null, "resolutiondate": null, "created": "2019-07-18T03:14:57.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [ { "id": "57742", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173889", "key": "MOD-2529", "fields": { "summary": "iOS Module: appcelerator.syncserver.client module is throwing a runtime error.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2019-07-18T03:17:17.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Steps to reproduce the behavior*\r\n\r\n# Add the [appcelerator.syncserver.client|https://github.com/appcelerator-modules/appcelerator.syncserver.client] module to a project\r\n# Require the module in the app: {{const client = require('appcelerator.syncserver.client');}}\r\n# Build and run app\r\n\r\n*Actual behavior*\r\nThe following error is thrown:\r\n{code}\r\nScript Error {\r\n column = 20;\r\n line = 30;\r\n message = \"Couldn't find module: jsdeferred for architecture: x86_64\";\r\n sourceURL = \"file:///Users/jvennemann/Library/Developer/CoreSimulator/Devices/4DDA0F33-7B7B-41FA-BF96-5800581D3BBB/data/Containers/Bundle/Application/C34F3D2A-9AB2-4394-B74F-D0D1BE3363F5/global-test-classic.app/appcelerator.syncserver.client\";\r\n stack = \" at require@[native code]\\n at (/appcelerator.syncserver.client:30:20)\\n at global code(/appcelerator.syncserver.client:2251:70)\\n at require@[native code]\\n at (/app.js:443:21)\\n at global code(/app.js:449:70)\\n at require@[native code]\\n at (/ti.main.js:9576:10)\\n at loadAsync(/ti.main.js:9502:13)\\n at global code(/ti.main.js:9573:10)\";\r\n toJSON = \"\";\r\n}\r\n{code}\r\n\r\n*Expected behavior*\r\nThe module loads without issues.\r\n\r\n*Notes*\r\nThis is most likely related to incorrect handling in [tryNativeModule|https://github.com/appcelerator/titanium_mobile/blob/c465e92795ddaf8eb4ae44319df00e98bd4b3a10/iphone/TitaniumKit/TitaniumKit/Sources/API/KrollBridge.m#L1163]. The module requires {{appcelerator.syncserver.client/jsdeferred.js}}, which will be split into module id and asset path. Only the asset path will be passed to {{ResolvedModule}} though, which causes [loadCoreModuleAsset|https://github.com/appcelerator/titanium_mobile/blob/c465e92795ddaf8eb4ae44319df00e98bd4b3a10/iphone/TitaniumKit/TitaniumKit/Sources/API/KrollBridge.m#L802] to throw.", "attachment": [], "flagged": false, "summary": "iOS: require in native module assets fails", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }