I’ve never used browserify so not entirely sure how you’ve set it up but you need to add the brfs transform to its configuration. It’s not enough to just install it. See https://github.com/substack/brfs#or-with-the-api for the brfs documentation on it. There’s a Meteor-specific browserify package that might be helpful called cosmos-browserify. Seems you’d set up a json config for that with something like:
{
"transforms": {
"brfs": {} <-- Options go here if there are any...
}
}
It may be possible to use the plain npm browserify package now that Meteor supports npm properly but someone else will have to chime in if they have info on that.
Thank you for your replies and sorry for a late response (was busy with other projects).
So, I have tried to implement your suggestion, but I can’t seem to get fs transform to brfs. I exported brfs to the browser and was able to call it in the console, but not fs. Am I missing some options that go into the config file’s transform?
Looks like might have the same issue with another package using the fs underneath… we were hoping to remove our dependence on cosmos:browserify as it seems that Meteor 1.3 was hopefully going to take care of browser side npm usage…