I'm having difficulty accessing lodash in an electron renderer. I'm new to Electron and understand that both the main process and the renderer (local html file) have access to node. I can require something native to node core such as fs and it works - when I try to require lodash, it returns an empty object. So far I have:
- installed
lodashfromnpmto the local project (using--save) - run
electron-rebuild
I refresh the app and step through the debugger only to find that lodash is an empty object.
Am I missing something? Can you only run core node modules in a renderer?