{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-packager/issues/646","repository_url":"https://api.github.com/repos/electron-userland/electron-packager","labels_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/646/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/646/comments","events_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/646/events","html_url":"https://github.com/electron-userland/electron-packager/issues/646","id":225654910,"number":646,"title":"App works, but packaged electron-app displays JavaScript error only","user":{"login":"wende60","id":15124946,"avatar_url":"https://avatars1.githubusercontent.com/u/15124946?v=3","gravatar_id":"","url":"https://api.github.com/users/wende60","html_url":"https://github.com/wende60","followers_url":"https://api.github.com/users/wende60/followers","following_url":"https://api.github.com/users/wende60/following{/other_user}","gists_url":"https://api.github.com/users/wende60/gists{/gist_id}","starred_url":"https://api.github.com/users/wende60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wende60/subscriptions","organizations_url":"https://api.github.com/users/wende60/orgs","repos_url":"https://api.github.com/users/wende60/repos","events_url":"https://api.github.com/users/wende60/events{/privacy}","received_events_url":"https://api.github.com/users/wende60/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-02T10:28:09Z","updated_at":"2017-05-02T11:33:58Z","closed_at":"2017-05-02T10:42:39Z","body":"hi there,\r\n\r\ncreating a little Electron test-app based on react, sass and pouchdb. \r\nThe App works, but after creating a package the Electron-app opens with an error:\r\n\r\nA JavaScript error occurred in the main process\r\n\r\nUncaught Exception:\r\nSyntaxError: Unexpected token {\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:413:25)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Object.<anonymous> (/Users/joachim/work/test/timeTracker/bin/ElectronReactSass-darwin-x64/ElectronReactSass.app/Contents/Resources/atom.asar/browser/lib/init.js:123:10)\r\n    at Object.<anonymous> (/Users/joachim/work/test/timeTracker/bin/ElectronReactSass-darwin-x64/ElectronReactSass.app/Contents/Resources/atom.asar/browser/lib/init.js:125:4)\r\n    at Module._compile (module.js:434:26)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n\r\nyou can find the code here:\r\nhttps://github.com/wende60/timeTracker\r\n\r\nForgive me, the code is in progress ;)\r\n\r\nbabel-cli is installed globally and updated to the latest version, so is node and npm. \r\nrunning 'build' and then 'start', or running 'watch' works fine. \r\nRunning 'bin' to pack results in the above error.\r\n\r\nI find it hard to debug here, no idea what conflicts i have. Tested to update some loaders and electron to 1.6.8 did not help. Other similar issues did not give a solution. \r\n\r\nAny hints for me?\r\n\r\nThanks and regards, jo\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-packager/issues/comments/298610776","html_url":"https://github.com/electron-userland/electron-packager/issues/646#issuecomment-298610776","issue_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/646","id":298610776,"user":{"login":"wende60","id":15124946,"avatar_url":"https://avatars1.githubusercontent.com/u/15124946?v=3","gravatar_id":"","url":"https://api.github.com/users/wende60","html_url":"https://github.com/wende60","followers_url":"https://api.github.com/users/wende60/followers","following_url":"https://api.github.com/users/wende60/following{/other_user}","gists_url":"https://api.github.com/users/wende60/gists{/gist_id}","starred_url":"https://api.github.com/users/wende60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wende60/subscriptions","organizations_url":"https://api.github.com/users/wende60/orgs","repos_url":"https://api.github.com/users/wende60/repos","events_url":"https://api.github.com/users/wende60/events{/privacy}","received_events_url":"https://api.github.com/users/wende60/received_events","type":"User","site_admin":false},"created_at":"2017-05-02T11:33:58Z","updated_at":"2017-05-02T11:33:58Z","body":"This was left over, and not updated with the electron install, thanks for the hint, it works :)"}}
{"actor":{"display_login":"wende60"}}