{ "id": "170161", "key": "TIMOB-25450", "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": "19960", "name": "Hyperloop 2.2.2", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-15T17:40:21.000+0000", "created": "2017-10-27T20:45:41.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "hyperloop" ], "versions": [], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-11-15T17:40:21.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": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "I'm attempting to enable Hyperloop in an existing Titanium iOS project. I couldn't find documentation on how to do this via the CLI, so I did enabled it using Appcelerator Studio. Enabling it there, it added the Hyperloop module and the plugin to the project's {{tiapp.xml}}.\r\n\r\nOn building the project, now with Hyperloop, this error appears:\r\n\r\n{code}\r\n[INFO] Alloy compiler completed successfully\r\n[TRACE] Starting third-party framework detection\r\n[TRACE] Scanning /Users/jacobbudin/Sites/madlibs-ios/platforms/titanium/madlibs/platform/ios for frameworks\r\n(node:46624) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): SyntaxError: Unexpected token ]\r\n{code}\r\n\r\nI suspect the cause of this error is this file and line in Hyperloop plugin: {{hyperloop/2.2.1/hooks/ios/node_modules/acorn/dist/acorn.js:3339}}:\r\n\r\n{code}\r\n$ node hyperloop.js \r\n/Users/somebody/Library/Application Support/Titanium/plugins/hyperloop/2.2.1/hooks/ios/node_modules/acorn/dist/acorn.js:3339\r\n},{}]]]]]]]]]]]]]]]]]\r\n ^\r\n\r\nSyntaxError: Unexpected token ]\r\n at createScript (vm.js:74:10)\r\n at Object.runInThisContext (vm.js:116:10)\r\n at Module._compile (module.js:588:28)\r\n at Object.Module._extensions..js (module.js:635:10)\r\n at Module.load (module.js:545:32)\r\n at tryModuleLoad (module.js:508:12)\r\n at Function.Module._load (module.js:500:3)\r\n at Module.require (module.js:568:17)\r\n at require (internal/module.js:11:18)\r\n at Object. (/Users/somebody/Library/Application Support/Titanium/plugins/hyperloop/2.2.1/hooks/ios/node_modules/hyperloop-metabase/lib/generate/custom.js:5:13)\r\n{code}\r\n\r\nMy initial suspicion is that the {{acorn}} module is no longer compatible with more modern versions of Node.js. The {{acorn}} module installed is version {{2.7.0}} (released [January 2016|https://github.com/ternjs/acorn/releases/tag/2.7.0]) whereas [the most recent release is {{5.1.2}}|https://www.npmjs.com/package/acorn].\r\n\r\nI could not find instructions on updating Hyperloop manually. I believe Hyperloop 2.2.1 to be the most recent version publicly available.", "attachment": [], "flagged": false, "summary": "Hyperloop: iOS - Cannot run likely due to outdated dependency", "creator": { "name": "jacobkettle", "key": "jacobkettle", "displayName": "Jacob Budin", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "jacobkettle", "key": "jacobkettle", "displayName": "Jacob Budin", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium SDK 6.2.2\r\nHyperloop 2.2.1\r\nNode.js 8.5.0", "comment": { "comments": [ { "id": "429764", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks for reporting this issue! When using Node 6 LTS, does the error occur as well? ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-28T16:10:57.000+0000", "updated": "2017-10-28T16:10:57.000+0000" }, { "id": "429837", "author": { "name": "jacobkettle", "key": "jacobkettle", "displayName": "Jacob Budin", "active": true, "timeZone": "America/New_York" }, "body": "I tried replacing my toolchain with Node.js v6.11.5 and receive the same error.\r\n\r\n{code}\r\n$ node -v\r\nv6.11.5\r\n$ node hyperloop.js \r\n/Users/somebody/Library/Application Support/Titanium/plugins/hyperloop/2.2.1/hooks/ios/node_modules/acorn/dist/acorn.js:3339\r\n},{}]]]]]]]]]]]]]]]]]\r\n ^\r\n\r\nSyntaxError: Unexpected token ]\r\n at createScript (vm.js:56:10)\r\n at Object.runInThisContext (vm.js:97:10)\r\n at Module._compile (module.js:542:28)\r\n at Object.Module._extensions..js (module.js:579:10)\r\n at Module.load (module.js:487:32)\r\n at tryModuleLoad (module.js:446:12)\r\n at Function.Module._load (module.js:438:3)\r\n at Module.require (module.js:497:17)\r\n at require (internal/module.js:20:19)\r\n at Object. (/Users/jacobbudin/Library/Application Support/Titanium/plugins/hyperloop/2.2.1/hooks/ios/node_modules/hyperloop-metabase/lib/generate/custom.js:5:13)\r\n{code}", "updateAuthor": { "name": "jacobkettle", "key": "jacobkettle", "displayName": "Jacob Budin", "active": true, "timeZone": "America/New_York" }, "created": "2017-10-30T14:53:24.000+0000", "updated": "2017-10-30T14:53:39.000+0000" }, { "id": "430347", "author": { "name": "jacobkettle", "key": "jacobkettle", "displayName": "Jacob Budin", "active": true, "timeZone": "America/New_York" }, "body": "Is anyone else able to recreate this issue with Hyperloop using the most recent Titanium toolkit? If so, please post here.", "updateAuthor": { "name": "jacobkettle", "key": "jacobkettle", "displayName": "Jacob Budin", "active": true, "timeZone": "America/New_York" }, "created": "2017-11-09T16:19:52.000+0000", "updated": "2017-11-09T16:19:52.000+0000" }, { "id": "430716", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jacobkettle], this was caused by a corrupted Hyperloop 2.2.1 distribution zip and was fixed with Hyperloop 2.2.2. Did you check with the updated version?", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-15T14:58:49.000+0000", "updated": "2017-11-15T14:58:49.000+0000" }, { "id": "430721", "author": { "name": "jacobkettle", "key": "jacobkettle", "displayName": "Jacob Budin", "active": true, "timeZone": "America/New_York" }, "body": "@jvennemann Confirmed. Hyperloop 2.2.2 resolves this issue. I appreciate it. Thanks.", "updateAuthor": { "name": "jacobkettle", "key": "jacobkettle", "displayName": "Jacob Budin", "active": true, "timeZone": "America/New_York" }, "created": "2017-11-15T17:07:52.000+0000", "updated": "2017-11-15T17:08:07.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }