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
Cannot read property 'crypto' of undefined #1512
Comments
Never-mind, this seems to have been an issue with my webpack config. I needed to add the following: Thanks. |
@jasoneversole Can you reopen this? I stumbled on the same issue. There is an ancient version of Update: updating to the latest version breaks.
In strict mode the this will be undefined.
it will not error out anymore, but changing files in node_modules isn't very stable. (slight understatement there!) |
@SanderElias thanks this helped us fix the issue. We monkey-patched |
Still having this issue today, and I'm not sure why this and #1566 are closed? Like @timotgl we had to apply a monkey patch. Some notes for anyone finding themselves here having to do the same thing:
Here is my patch:
|
@ericdcobb Ref: #1880 |
@chrisradek I was using 2.282.1, I believe, but also using |
I think it should be reopened. Patching files (even ad-hoc) is a good solution but would be great if you guys can fix the real problem here. |
I some how cannot find the full source for this package so as to apply this patch. Another fix will be to change the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Getting the following error when importing aws-sdk. Not sure if it is a bug or just my set-up.
Seems to be happening on the following lines:
if (_global.crypto && crypto.getRandomValues) {
whatwgRNG = function(size) {
var bytes = new Uint8Array(size);
crypto.getRandomValues(bytes);
return bytes;
}
}
The text was updated successfully, but these errors were encountered: