{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/2506","labels_url":"https://api.github.com/repos/atom/electron/issues/2506/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/2506/comments","events_url":"https://api.github.com/repos/atom/electron/issues/2506/events","html_url":"https://github.com/atom/electron/issues/2506","id":101103099,"number":2506,"title":"Including some npm modules fails (in render process)","user":{"login":"aslauris","id":2248823,"avatar_url":"https://avatars.githubusercontent.com/u/2248823?v=3","gravatar_id":"","url":"https://api.github.com/users/aslauris","html_url":"https://github.com/aslauris","followers_url":"https://api.github.com/users/aslauris/followers","following_url":"https://api.github.com/users/aslauris/following{/other_user}","gists_url":"https://api.github.com/users/aslauris/gists{/gist_id}","starred_url":"https://api.github.com/users/aslauris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslauris/subscriptions","organizations_url":"https://api.github.com/users/aslauris/orgs","repos_url":"https://api.github.com/users/aslauris/repos","events_url":"https://api.github.com/users/aslauris/events{/privacy}","received_events_url":"https://api.github.com/users/aslauris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-14T21:03:44Z","updated_at":"2015-08-15T12:41:44Z","closed_at":null,"body":"There are some npm modules which doesn't work in my Electron (v0.30.4 on OSX) app (in render process), e.g. lodash. When I try to include it using _require('lodash')_ it returns an empty object. There is the same issue with lokijs module.\r\n\r\nI've noticed that these modules work fine if I'm using them in main (browser) process. Is there any way to use these modules in render process as well (without ipc)?"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/131367401","html_url":"https://github.com/atom/electron/issues/2506#issuecomment-131367401","issue_url":"https://api.github.com/repos/atom/electron/issues/2506","id":131367401,"user":{"login":"aslauris","id":2248823,"avatar_url":"https://avatars.githubusercontent.com/u/2248823?v=3","gravatar_id":"","url":"https://api.github.com/users/aslauris","html_url":"https://github.com/aslauris","followers_url":"https://api.github.com/users/aslauris/followers","following_url":"https://api.github.com/users/aslauris/following{/other_user}","gists_url":"https://api.github.com/users/aslauris/gists{/gist_id}","starred_url":"https://api.github.com/users/aslauris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslauris/subscriptions","organizations_url":"https://api.github.com/users/aslauris/orgs","repos_url":"https://api.github.com/users/aslauris/repos","events_url":"https://api.github.com/users/aslauris/events{/privacy}","received_events_url":"https://api.github.com/users/aslauris/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T12:41:44Z","updated_at":"2015-08-15T12:41:44Z","body":"I found that remote could be used as a workaround e.g.:\r\n```\r\nvar remote = require('remote'),\r\nloki = remote.require('lokijs');\r\n```\r\nIs it a good practice to use remote in this case?"}}