Suggested Setup in README Doesn't Work
When I dial this into the latest browserify:
var bundle = browserify({
require : { http : 'http-browserify' }
});
I get an error saying Error: path must be a string.
Please update with correct configuration instructions!
Did you ever manage to resolve this? I'm also experiencing the same issue. Wonder if the browserify api has changed fairly recently.
@skyhaikuteam I did not. I ended up not using the package due to the issue.
@codeviking @skyhaikuteam browserify now automatically uses http-browserify for http by default:
https://github.com/substack/node-browserify/blob/master/lib/builtins.js
exports.http = require.resolve('http-browserify');
the config from the readme is no longer needed (and should probably be deleted):