Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

I am using electron with angular 2 and typescript #35

Open
abmnukmr opened this issue Mar 21, 2018 · 3 comments
Open

I am using electron with angular 2 and typescript #35

abmnukmr opened this issue Mar 21, 2018 · 3 comments
Labels

Comments

@abmnukmr
Copy link

abmnukmr commented Mar 21, 2018

Runtime error
fs.existsSync is not a function.

@bayleedev
Copy link
Owner

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

@bayleedev bayleedev added the bug label Mar 21, 2018
@gummibjorn
Copy link

running into the same issue with angular 5

@gummibjorn
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants