{"action":"created","issue":{"url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/50","repository_url":"https://api.github.com/repos/SimulatedGREG/electron-vue","labels_url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/50/comments","events_url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/50/events","html_url":"https://github.com/SimulatedGREG/electron-vue/issues/50","id":186153399,"number":50,"title":"Can't use npm modules inside electron.js","user":{"login":"simonwjackson","id":189379,"avatar_url":"https://avatars.githubusercontent.com/u/189379?v=3","gravatar_id":"","url":"https://api.github.com/users/simonwjackson","html_url":"https://github.com/simonwjackson","followers_url":"https://api.github.com/users/simonwjackson/followers","following_url":"https://api.github.com/users/simonwjackson/following{/other_user}","gists_url":"https://api.github.com/users/simonwjackson/gists{/gist_id}","starred_url":"https://api.github.com/users/simonwjackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonwjackson/subscriptions","organizations_url":"https://api.github.com/users/simonwjackson/orgs","repos_url":"https://api.github.com/users/simonwjackson/repos","events_url":"https://api.github.com/users/simonwjackson/events{/privacy}","received_events_url":"https://api.github.com/users/simonwjackson/received_events","type":"User","site_admin":false},"labels":[{"id":374918197,"url":"https://api.github.com/repos/SimulatedGREG/electron-vue/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-30T18:30:33Z","updated_at":"2016-11-01T18:38:21Z","closed_at":null,"body":"##### Describe the issue / bug.\n\nCan't use npm modules inside electron.js. _(socket.io for example)_\n\nI know the `node_modules` are removed in the final build, but they seem to work only when included inside the Vue instance.\n\nIs there some way i can still `require` these in `electron.js`?\n##### How can I reproduce this problem?\n\n``` bash\nnpm install --save socket.io\ncd app \nnpm install --save socket.io\nnpm run build:win32\n# then execute exe\n```\n\n**/app/electron.js**\n\n``` javascript\nconst io = require('socket.io')\n```\n##### If visual, provide a screenshot.\n\n![image](https://cloud.githubusercontent.com/assets/189379/19838799/b034fed2-9ea4-11e6-963e-ebecee15b924.png)\n##### Tell me about your development environment.\n- Node version: 6.5.0\n- NPM version: 3.10.8\n- Operating System: Win 10\n"},"comment":{"url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/comments/257655132","html_url":"https://github.com/SimulatedGREG/electron-vue/issues/50#issuecomment-257655132","issue_url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/50","id":257655132,"user":{"login":"SimulatedGREG","id":8327811,"avatar_url":"https://avatars.githubusercontent.com/u/8327811?v=3","gravatar_id":"","url":"https://api.github.com/users/SimulatedGREG","html_url":"https://github.com/SimulatedGREG","followers_url":"https://api.github.com/users/SimulatedGREG/followers","following_url":"https://api.github.com/users/SimulatedGREG/following{/other_user}","gists_url":"https://api.github.com/users/SimulatedGREG/gists{/gist_id}","starred_url":"https://api.github.com/users/SimulatedGREG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimulatedGREG/subscriptions","organizations_url":"https://api.github.com/users/SimulatedGREG/orgs","repos_url":"https://api.github.com/users/SimulatedGREG/repos","events_url":"https://api.github.com/users/SimulatedGREG/events{/privacy}","received_events_url":"https://api.github.com/users/SimulatedGREG/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T18:38:21Z","updated_at":"2016-11-01T18:38:21Z","body":"Looking to bring `electron-builder` support soon, which should make external modules for main process a lot easier to manage. Not many boilerplates handle this well so there is some pioneering to do since webpack is involved. Thanks for understanding. "}}
{"actor":{"display_login":"SimulatedGREG"}}