{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-packager/issues/517","repository_url":"https://api.github.com/repos/electron-userland/electron-packager","labels_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/517/comments","events_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/517/events","html_url":"https://github.com/electron-userland/electron-packager/issues/517","id":185958348,"number":517,"title":"Uncaught Error (in package): Cannot find module","user":{"login":"barbalex","id":669783,"avatar_url":"https://avatars.githubusercontent.com/u/669783?v=3","gravatar_id":"","url":"https://api.github.com/users/barbalex","html_url":"https://github.com/barbalex","followers_url":"https://api.github.com/users/barbalex/followers","following_url":"https://api.github.com/users/barbalex/following{/other_user}","gists_url":"https://api.github.com/users/barbalex/gists{/gist_id}","starred_url":"https://api.github.com/users/barbalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbalex/subscriptions","organizations_url":"https://api.github.com/users/barbalex/orgs","repos_url":"https://api.github.com/users/barbalex/repos","events_url":"https://api.github.com/users/barbalex/events{/privacy}","received_events_url":"https://api.github.com/users/barbalex/received_events","type":"User","site_admin":false},"labels":[{"id":260987075,"url":"https://api.github.com/repos/electron-userland/electron-packager/labels/needs%20info","name":"needs info","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-10-28T15:54:18Z","updated_at":"2016-10-28T21:03:41Z","closed_at":null,"body":"**Please describe your issue:**\r\n[This app](https://github.com/barbalex/kapla2) works fine in dev mode.\r\nWhen I package it it opens, the window remains white and in the console this error appears:\r\n\r\n    Uncaught Error: Cannot find module 'lodash'\r\n\r\n<!-- For bugs and questions, please answer these questions to the best of your ability. -->\r\n\r\n**Console output when you run electron-packager with the environment variable `DEBUG=electron-packager`. Please include the stack trace if one exists.**\r\n\r\nthis error is repeated hundreds of times:\r\n\r\nhttps://gist.github.com/barbalex/88d03ac08246102370d152cba69bacdd\r\n\r\n**What command line arguments are you passing? Alternatively, if you are using the API, what\r\nparameters are you passing to the `packager()` function?**\r\n\r\n    cross-env NODE_ENV=production node -r babel-register -r babel-polyfill package.js\r\n\r\nThis is the package.js file: https://github.com/barbalex/kapla2/blob/master/package.js\r\n\r\nI am using https://github.com/chentsulin/electron-react-boilerplate.git as boilerplate for my app.\r\nThe error occurs on Windows 10 as well as maxOs Sierra. On Windows a different module was missed.\r\n\r\n**Please provide either a failing minimal testcase (with a link to the code) or detailed steps to\r\nreproduce your problem. Using [electron-quick-start](https://github.com/electron/electron-quick-start)\r\nis a good starting point.**\r\n\r\nSorry, I have no idea how to reproduce this error that way.\r\n\r\nMaybe this helps:\r\n\r\nClone [my repo](https://github.com/barbalex/kapla2), npm i, npm run dev > see how it should work\r\nnpm package, start app > see error in console\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-packager/issues/comments/257028048","html_url":"https://github.com/electron-userland/electron-packager/issues/517#issuecomment-257028048","issue_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/517","id":257028048,"user":{"login":"barbalex","id":669783,"avatar_url":"https://avatars.githubusercontent.com/u/669783?v=3","gravatar_id":"","url":"https://api.github.com/users/barbalex","html_url":"https://github.com/barbalex","followers_url":"https://api.github.com/users/barbalex/followers","following_url":"https://api.github.com/users/barbalex/following{/other_user}","gists_url":"https://api.github.com/users/barbalex/gists{/gist_id}","starred_url":"https://api.github.com/users/barbalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbalex/subscriptions","organizations_url":"https://api.github.com/users/barbalex/orgs","repos_url":"https://api.github.com/users/barbalex/repos","events_url":"https://api.github.com/users/barbalex/events{/privacy}","received_events_url":"https://api.github.com/users/barbalex/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T21:03:41Z","updated_at":"2016-10-28T21:03:41Z","body":"...or are these only the dependencies that I've set as external in `webpack.config.base.js` ?"}}
{"actor":{"display_login":"barbalex"}}