-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Usage with browserify causes errors #18
Comments
Yeah, I feel your pain, but that's not really the right solution to this problem IMO – devs shouldn't be swapping out core Node.js modules because of issues with bundling tools/libs. The correct solution to this is just to change your browserify config to use the |
Haha, true. Thanks for the workaround though :) |
No problem, hope it works! 😸 |
FWIW, I've added an example of how to use this module with browserify here: https://github.com/mhart/aws4/tree/master/browser |
This is not really a problem with this library, but could be fixed here, so I opened an issue here.
If I use "aws4" with browserify, the library throws this error:
The issue is that browserify's "querystring" module does not contain the "unescape" method (see mike-spainhower/querystring#4)
Some kind soul is providing a library that actually works: https://github.com/mathiasvr/querystring
Can "aws4" use that implementation? (It would involve depending on the above library, and adding a "browser" directive to the package.json here.)
I don't mind opening a PR, if this change is acceptable :)
The text was updated successfully, but these errors were encountered: