bayleedev / electron-notifications

:boom: A node module for sending notifications in electron applications.
MIT License
133 stars 54 forks source link

I am using electron with angular 2 and typescript #35

Open abmnukmr opened 6 years ago

abmnukmr commented 6 years ago

Runtime error fs.existsSync is not a function.

bayleedev commented 6 years ago

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

gummibjorn commented 6 years ago

running into the same issue with angular 5

gummibjorn commented 6 years ago

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.