I am very new to the topic of Angular, Javascript etc.
I try to write a (TypeScript) Angular2-Electron application which should access the file-system. Everyone just
Using "fs" : "@node/fs" in the systemjs map you can solve the problem completely. Then you can import the native node modules as usual:
"fs" : "@node/fs"
systemjs
import {existsSync} from 'fs';