I’m trying to build a package in OS.js at the moment, and I wanted to use fs.js: https://github.com/zlatinejc/fs
I have installed fs.js using npm, and it works on my computer, but I’m not sure how to use it with a package. when I refer to fs in my main.js file, it says that fs does not exist, and when I add in ‘var fs = require’ the application doesn’t open at all.
I thought I needed to add ‘const fs = require(‘fs’);’ to the grunt file, but that isn’t working either.
I don’t understand how to get OS.js to use an external package, after I have installed it (globally) with npm. Any help is appreciated!