electron-notifications
electron-notifications copied to clipboard
I am using electron with angular 2 and typescript
Runtime error fs.existsSync is not a function.
It sounds like your compiler is removing the node runtime from the files.
running into the same issue with angular 5
importing the plugin like
const ElectronNotifications = (window as any).require('electron-notifications');
worked for me. I guess it is a webpack issue, which i do not completely understand.