{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenNewsLabs/guri-vr/issues/59","repository_url":"https://api.github.com/repos/OpenNewsLabs/guri-vr","labels_url":"https://api.github.com/repos/OpenNewsLabs/guri-vr/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/OpenNewsLabs/guri-vr/issues/59/comments","events_url":"https://api.github.com/repos/OpenNewsLabs/guri-vr/issues/59/events","html_url":"https://github.com/OpenNewsLabs/guri-vr/issues/59","id":180697135,"number":59,"title":"Problems Starting the app","user":{"login":"josx","id":791137,"avatar_url":"https://avatars.githubusercontent.com/u/791137?v=3","gravatar_id":"","url":"https://api.github.com/users/josx","html_url":"https://github.com/josx","followers_url":"https://api.github.com/users/josx/followers","following_url":"https://api.github.com/users/josx/following{/other_user}","gists_url":"https://api.github.com/users/josx/gists{/gist_id}","starred_url":"https://api.github.com/users/josx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josx/subscriptions","organizations_url":"https://api.github.com/users/josx/orgs","repos_url":"https://api.github.com/users/josx/repos","events_url":"https://api.github.com/users/josx/events{/privacy}","received_events_url":"https://api.github.com/users/josx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-03T17:23:48Z","updated_at":"2016-10-03T17:23:48Z","closed_at":null,"body":"Error running the app. I am using Node v4.2.4, this can be avoid running node in strict mode\r\n\r\nFirst error:\r\n\r\n```javascript\r\n> node index.js\r\n\r\n/guri-vr/story-builder.js:289\r\n  for (let i = 0; i < chapters.length; i++) {\r\n       ^^^\r\n\r\nSyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode\r\n```\r\n\r\nSecond error:\r\n\r\n```javascript\r\nguri-vr/search-resources.js:17\r\n  const { type, query } = req.query\r\n        ^\r\n\r\nSyntaxError: Unexpected token {\r\n```\r\n\r\nTo solve first \r\n\r\n```javascript\r\n-    \"start\": \"node index.js\"\r\n+    \"start\": \"node --use_strict index.js\"\r\n```\r\n\r\nTo solve second error,  maybe:\r\n\r\n```javascript\r\n-  const { type, query } = req.query\r\n+  const type = req.query.type;\r\n+  const query = req.query.query;\r\n```"}}
{"actor":{"display_login":"josx"}}