{"action":"created","issue":{"url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/924","repository_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate","labels_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/924/labels{/name}","comments_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/924/comments","events_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/924/events","html_url":"https://github.com/chentsulin/electron-react-boilerplate/issues/924","id":222351547,"number":924,"title":"package.json : Shouldn't main point to app/main.js ?","user":{"login":"hepiyellow","id":6338722,"avatar_url":"https://avatars1.githubusercontent.com/u/6338722?v=3","gravatar_id":"","url":"https://api.github.com/users/hepiyellow","html_url":"https://github.com/hepiyellow","followers_url":"https://api.github.com/users/hepiyellow/followers","following_url":"https://api.github.com/users/hepiyellow/following{/other_user}","gists_url":"https://api.github.com/users/hepiyellow/gists{/gist_id}","starred_url":"https://api.github.com/users/hepiyellow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hepiyellow/subscriptions","organizations_url":"https://api.github.com/users/hepiyellow/orgs","repos_url":"https://api.github.com/users/hepiyellow/repos","events_url":"https://api.github.com/users/hepiyellow/events{/privacy}","received_events_url":"https://api.github.com/users/hepiyellow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-18T09:16:40Z","updated_at":"2017-04-22T22:31:41Z","closed_at":"2017-04-22T22:03:26Z","body":"Hi,\r\n\r\nShouldn't the `main` property in `package.json` point to `app/main.js` instead of `main.js`?"},"comment":{"url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/comments/296405774","html_url":"https://github.com/chentsulin/electron-react-boilerplate/issues/924#issuecomment-296405774","issue_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/924","id":296405774,"user":{"login":"hepiyellow","id":6338722,"avatar_url":"https://avatars1.githubusercontent.com/u/6338722?v=3","gravatar_id":"","url":"https://api.github.com/users/hepiyellow","html_url":"https://github.com/hepiyellow","followers_url":"https://api.github.com/users/hepiyellow/followers","following_url":"https://api.github.com/users/hepiyellow/following{/other_user}","gists_url":"https://api.github.com/users/hepiyellow/gists{/gist_id}","starred_url":"https://api.github.com/users/hepiyellow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hepiyellow/subscriptions","organizations_url":"https://api.github.com/users/hepiyellow/orgs","repos_url":"https://api.github.com/users/hepiyellow/repos","events_url":"https://api.github.com/users/hepiyellow/events{/privacy}","received_events_url":"https://api.github.com/users/hepiyellow/received_events","type":"User","site_admin":false},"created_at":"2017-04-22T22:31:41Z","updated_at":"2017-04-22T22:31:41Z","body":"Well, sorry for the un-informative question.\r\n\r\nHere is my real question:\r\nI added this VS Code launch configuration:\r\n```\r\n{\r\n            \"name\": \"Launch\",\r\n            \"type\": \"node\",\r\n            \"request\": \"launch\",\r\n            \"program\": \"${workspaceRoot}/app/main.js\",\r\n            \"stopOnEntry\": false,\r\n            \"args\": [],\r\n            \"cwd\": \"${workspaceRoot}\",\r\n            \"preLaunchTask\": null,\r\n            \"runtimeExecutable\": \"${workspaceRoot}/node_modules/.bin/electron\",\r\n            \"runtimeArgs\": [\r\n                \".\",\r\n                \"--enable-logging\"\r\n            ],\r\n            \"env\": {},\r\n            \"console\": \"internalConsole\",\r\n            \"sourceMaps\": false,\r\n            \"outDir\": null\r\n        }\r\n```\r\n\r\nAnd it works only if I change `package.json`'s `main` to be `app/main.js` instead of `main.js`.\r\nWhen it is only `main.js` then I get pop-up window with an error saying:\r\n\"unable to find Electron app at [path to my electron-react-boilerplate]\"\r\n\r\nIs there something wrong in my launch config?\r\n \r\nUsing VS Code 1.11.2\r\n"}}
{"actor":{"display_login":"hepiyellow"}}