{"action":"created","issue":{"url":"https://api.github.com/repos/arangodb/arangojs/issues/208","repository_url":"https://api.github.com/repos/arangodb/arangojs","labels_url":"https://api.github.com/repos/arangodb/arangojs/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangojs/issues/208/comments","events_url":"https://api.github.com/repos/arangodb/arangojs/issues/208/events","html_url":"https://github.com/arangodb/arangojs/issues/208","id":152261492,"number":208,"title":"NativeScript Integration error","user":{"login":"Terristen","id":3913882,"avatar_url":"https://avatars.githubusercontent.com/u/3913882?v=3","gravatar_id":"","url":"https://api.github.com/users/Terristen","html_url":"https://github.com/Terristen","followers_url":"https://api.github.com/users/Terristen/followers","following_url":"https://api.github.com/users/Terristen/following{/other_user}","gists_url":"https://api.github.com/users/Terristen/gists{/gist_id}","starred_url":"https://api.github.com/users/Terristen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terristen/subscriptions","organizations_url":"https://api.github.com/users/Terristen/orgs","repos_url":"https://api.github.com/users/Terristen/repos","events_url":"https://api.github.com/users/Terristen/events{/privacy}","received_events_url":"https://api.github.com/users/Terristen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-01T16:41:29Z","updated_at":"2016-05-03T13:58:11Z","closed_at":null,"body":"Attempting to add to a NativeScript application, throws error when require(\"arangojs\") is added to the project.\r\n\r\nI'm posting here as the error is firing from arangojs, but the err could stem from some aspect of NativeScript. If there's a workaround/fix/something-im-doing-wrong, I appreciate someone pointing me in the right direction. Thanks. I know NativeScript is an edge-case, but maybe someone's tried this before?\r\n\r\nException as listed in the emulator (using Genymotion Android Image):\r\n```\r\njava.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.myapp/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: \r\nCalling js method onCreate failed\r\n\r\nTypeError: inherits is not a function\r\nFile: \"<unknown>, line: 1, column: 265\r\n\r\nStackTrace: \r\n\tFrame: function:'', file:'/data/data/org.nativescript.myapp/files/app/tns_modules/http-errors/index.js', line: 110, column: 3\r\n\tFrame: function:'', file:'/data/data/org.nativescript.myapp/files/app/tns_modules/http-errors/index.js', line: 72, column: 7\r\n\tFrame: function:'require', file:'', line: 1, column: 266\r\n\tFrame: function:'', file:'/data/data/org.nativescript.myapp/files/app/tns_modules/arangojs/lib/connection.js', line: 19, column: 19\r\n\tFrame: function:'require', file:'', line: 1, column: 266\r\n\tFrame: function:'', file:'/data/data/org.nativescript.myapp/files/app/tns_modules/arangojs/lib/database.js', line: 19, column: 19\r\n\tFrame: function:'require', file:'', line: 1, column: 266\r\n\tFrame: function:'', file:'/data/data/org.native\r\n```"},"comment":{"url":"https://api.github.com/repos/arangodb/arangojs/issues/comments/216535922","html_url":"https://github.com/arangodb/arangojs/issues/208#issuecomment-216535922","issue_url":"https://api.github.com/repos/arangodb/arangojs/issues/208","id":216535922,"user":{"login":"pluma","id":1280922,"avatar_url":"https://avatars.githubusercontent.com/u/1280922?v=3","gravatar_id":"","url":"https://api.github.com/users/pluma","html_url":"https://github.com/pluma","followers_url":"https://api.github.com/users/pluma/followers","following_url":"https://api.github.com/users/pluma/following{/other_user}","gists_url":"https://api.github.com/users/pluma/gists{/gist_id}","starred_url":"https://api.github.com/users/pluma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pluma/subscriptions","organizations_url":"https://api.github.com/users/pluma/orgs","repos_url":"https://api.github.com/users/pluma/repos","events_url":"https://api.github.com/users/pluma/events{/privacy}","received_events_url":"https://api.github.com/users/pluma/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T13:58:11Z","updated_at":"2016-05-03T13:58:11Z","body":"Going by the error it seems the code that is blowing up is the [http-errors](https://www.npmjs.com/package/http-errors) module, which is a dependency of arangojs. The underlying problem seems to be with the [inherits](https://www.npmjs.com/package/inherits) module but I recall having seen the exact same problem before with http-errors, so that might still be the best place to look.\r\n\r\nI suggest also reporting this error at the [http-errors repo](https://github.com/jshttp/http-errors) as it's likely not a problem that is specific to arangojs. There's not much I can do myself."}}