-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.1.6] Buffer.alloc is not a function #20
Comments
this may be a bundling error, buffer refers to |
I think one of the issues is that safe-buffer requires the buffer package however since buffer is not specified in the safe-buffer package.json there's no constraint on the version that will satisfy it. So if another package is already using an older buffer release then safe-buffer won't pull a later one. Some of the older buffer packages releases do not support alloc. |
I'm not sure where it's coming from for me yet, but it's happening with browserify for me. |
we circumvented the issue by putting https://github.com/crypto-browserify/pbkdf2 fixed to an older version (3.0.9) as well as createHmac to version 1.1.4. Since then package 3.0.12 of pbkdf2 has been published but I still seem to get the same error when I unfix the versions. |
Does anyone have easy repro steps? |
If you paste the code sample from the README to RequireBin you'll get the Buffer error on the console, see: http://requirebin.com/?gist=ea94116908e96710a648ad3f47407636 Edit: sorry, just realised this might be a different issue, will see if I can find a better way to reproduce the actual one... |
jspm/registry#1049 seems to be the fix |
@briansneddon opened an issue based on your thing on safe-buffer feross/safe-buffer#9 |
I have the same issue at my repo, so I refer from here to wait for your next updates. |
I have same issue with old browserify (^6.3.2). Fixed with latest browserify (13.0.1) |
workaround is to use shrinkwrap
hopefully you dont run into any shrinkwrap errors... if so try |
Are there fixes in those packages that should be PR'd? |
there is a pull on safe-buffer feross/safe-buffer#10 |
ETA for the fix? thanks! |
Closing in favour of feross/safe-buffer#10 |
TypeError: Buffer.alloc is not a function
in create-hmac@1.1.6/legacy.js
The text was updated successfully, but these errors were encountered: