Hi,

           I am using Angular 4 with electron. When I am trying to use 
electron command then I am receiving an error.

Error at run time: Uncaught TypeError: fs.existsSync is not a function

What I am trying to write:

import { shell } from 'electron';

/ /later in code in a method:

shell.openExternal(url); // to open a browser window. 


This error is not only for this command but it appears on any command from 
electron. Anybody any idea about this and how to fix it.

Thanks,
Chuck.





-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to