{"action":"created","issue":{"url":"https://api.github.com/repos/natjs/nat/issues/27","repository_url":"https://api.github.com/repos/natjs/nat","labels_url":"https://api.github.com/repos/natjs/nat/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/natjs/nat/issues/27/comments","events_url":"https://api.github.com/repos/natjs/nat/issues/27/events","html_url":"https://github.com/natjs/nat/issues/27","id":300915863,"number":27,"title":"Unhandled promise rejection TypeError:undefined is not an object(evaluating 'camera.captureImage')","user":{"login":"baixiaodu","id":22970149,"avatar_url":"https://avatars2.githubusercontent.com/u/22970149?v=4","gravatar_id":"","url":"https://api.github.com/users/baixiaodu","html_url":"https://github.com/baixiaodu","followers_url":"https://api.github.com/users/baixiaodu/followers","following_url":"https://api.github.com/users/baixiaodu/following{/other_user}","gists_url":"https://api.github.com/users/baixiaodu/gists{/gist_id}","starred_url":"https://api.github.com/users/baixiaodu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baixiaodu/subscriptions","organizations_url":"https://api.github.com/users/baixiaodu/orgs","repos_url":"https://api.github.com/users/baixiaodu/repos","events_url":"https://api.github.com/users/baixiaodu/events{/privacy}","received_events_url":"https://api.github.com/users/baixiaodu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-28T07:14:22Z","updated_at":"2018-03-13T11:16:17Z","closed_at":null,"author_association":"NONE","body":"environment:\r\nwindow: 10\r\nnode 8.9.3\r\nnpm 5.6\r\nweexpack 1.1.1\r\nnatjs 0.1.5\r\n\r\n\r\nwhat's wrong with me???\r\n/plugins.json\r\n![image](https://user-images.githubusercontent.com/22970149/36774576-a03f9932-1c99-11e8-99a7-9feaa04dd29a.png)\r\n\r\n.weex_plugin.json\r\n![image](https://user-images.githubusercontent.com/22970149/36774548-84293a14-1c99-11e8-8cec-21ebc116e7cc.png)\r\n \r\nindex.vue  \r\n\r\n![image](https://user-images.githubusercontent.com/22970149/36774666-f27226d4-1c99-11e8-8ac3-f3431416233e.png)\r\n"},"comment":{"url":"https://api.github.com/repos/natjs/nat/issues/comments/372630946","html_url":"https://github.com/natjs/nat/issues/27#issuecomment-372630946","issue_url":"https://api.github.com/repos/natjs/nat/issues/27","id":372630946,"user":{"login":"sushilparajuli","id":5800371,"avatar_url":"https://avatars0.githubusercontent.com/u/5800371?v=4","gravatar_id":"","url":"https://api.github.com/users/sushilparajuli","html_url":"https://github.com/sushilparajuli","followers_url":"https://api.github.com/users/sushilparajuli/followers","following_url":"https://api.github.com/users/sushilparajuli/following{/other_user}","gists_url":"https://api.github.com/users/sushilparajuli/gists{/gist_id}","starred_url":"https://api.github.com/users/sushilparajuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushilparajuli/subscriptions","organizations_url":"https://api.github.com/users/sushilparajuli/orgs","repos_url":"https://api.github.com/users/sushilparajuli/repos","events_url":"https://api.github.com/users/sushilparajuli/events{/privacy}","received_events_url":"https://api.github.com/users/sushilparajuli/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T11:16:17Z","updated_at":"2018-03-13T11:16:17Z","author_association":"NONE","body":"@Acathur, I got the same issue as @baixiaodu is getting. Also implement error condition too like below but the app is crashing :\r\n```\r\nNat.camera.captureImage({}, (err, ret) => {\r\n          if(err){\r\n            modal.toast({message: JSON.stringify(err), duration: 0.5});\r\n          }\r\n          this.imageData = ret.path\r\n        })\r\n```"}}
{"actor":{"display_login":"sushilparajuli"}}