On Sunday, November 25, 2012 4:40:54 PM UTC-8, Simon wrote:
>
> Has anyone had any luck using mikeal's request with browserify. I kinda 
> hoped it would just work, but the issue I run into is "Object has no method 
> readFileSync" from within Mime.prototype.load so I may need to find a way 
> to load the mime file into browserify's "virtual" filesystem. Does that 
> sound right? I might take a look at automatthew's shred instead since this 
> is just for some mocha tests, any http client wrapper should do. Any 
> suggestions?


You could use the 1.9.x version of request, which works with browserify. 
Submitting a pull request to the mime module to use 
`require('./file.json')` instead of `fs.readFileSync()` would also fix this 
issue. 

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to