Electron, Angular2, “fs”

前端 未结 4 958
生来不讨喜
生来不讨喜 2020-12-11 05:58

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

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-11 06:16

    Using "fs" : "@node/fs" in the systemjs map you can solve the problem completely. Then you can import the native node modules as usual:

    import {existsSync} from 'fs';

提交回复
热议问题