brfs
                                
                                 brfs copied to clipboard
                                
                                    brfs copied to clipboard
                            
                            
                            
                        Usage from grunt-browserify not working
I tried to use it from grunt but when i require 'fs' start getting the following error:
TypeError: Cannot read property 'range' of null
Any idea where doe it come from?
Got it working. The problem is it needs the var statement at the start of line:
var fs = require('fs');
But this doesnt work:
var foo ='bar',
    fs = require('fs');
@substack - I too am experiencing this error, however the fix proposed by @blacksonic only resulted in a new error being raised:
Error: unsupported type for static module: Property
at expression:
  value: fs
Depressingly enough downgrading all the way to [email protected] resolved the issue.
As a separate problem, it would appear that brfs doesn't work when fs is passed as a reference into functions.
Thanks for this great tool!
I had the same issue as blacksonic:
Works
var fs = require('fs');
var insertCss = require('insert-css');
Doesn't work
var fs = require('fs'),
    insertCss = require('insert-css');
I've also run into this issue, using the straight brfs module (inside of Gulp).