DEV Community

Discussion on: Integrating an Angular-CLI application with Electron - The IPC

jessycormier profile image
Jessy Cormier

Missing from this article is that, for window.require to work you also need to make sure your BrowserWindow you create has the option

webPreferences: {
  nodeIntegration: true,
michaeljota profile image
Michael De Abreu Author

Thanks! Looks like one of the changes they introduced with Electron 4.