electron-notifications icon indicating copy to clipboard operation
electron-notifications copied to clipboard

I am using electron with angular 2 and typescript

Open abmnukmr opened this issue 7 years ago • 3 comments

Runtime error fs.existsSync is not a function.

abmnukmr avatar Mar 21 '18 13:03 abmnukmr

It sounds like your compiler is removing the node runtime from the files.

bayleedev avatar Mar 21 '18 16:03 bayleedev

running into the same issue with angular 5

gummibjorn avatar Jun 08 '18 06:06 gummibjorn

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.

gummibjorn avatar Jun 08 '18 06:06 gummibjorn