I’m trying to do something (I think) very simple. I have my app running with meteor and angular 2 on electron, and I would like to use the fs module to read and write files to my desktop… I need it on the client side so a user could click a button and create the file/folder
I seem to run into problems with something like:
Where meteor is saying that fs is not defined (I added a typescript definition but that didn’t help). I’ve tried various solutions but I just get errors, e.g.:
- tried requiring fs in my app component with var fs = Npm.require(‘fs’);
- tried meteorhacks:npm with Meteor.npmRequire
- tried https://github.com/arboleya/electrify
So far nothing is working. Could someone help me find the simplest solution to this (very simple) problem?