Skip to content
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

Fails in Internet Explorer #308

Closed
TJonesy opened this issue Apr 1, 2019 · 4 comments
Closed

Fails in Internet Explorer #308

TJonesy opened this issue Apr 1, 2019 · 4 comments

Comments

@TJonesy
Copy link

TJonesy commented Apr 1, 2019

In internet explorer it crashes because crypto is undefined.

@broofa
Copy link
Member

broofa commented Apr 1, 2019

SSCCE? What version of IE? Stack trace?

@broofa
Copy link
Member

broofa commented Apr 3, 2019

Closing, as I suspect you're seeing #284 which is fixed in latest. Make sure you're using most recent uuid version and report back here if this is still an issue.

@broofa broofa closed this as completed Apr 3, 2019
@TJonesy
Copy link
Author

TJonesy commented Apr 3, 2019

I am not sure that is the same issue but I will give that a try. Sorry I have not had time yet to make an example. Running in IE11 (or IE9 emulation) it crashes my entire react app with the error Crypto is undefined. Doing if(window.msCrypto) { window.crypto = window.msCrypto; } in my main app fixes the issue for me in IE11.

@broofa
Copy link
Member

broofa commented Apr 3, 2019

Well, there's code to handle the various IE idiosyncracies around crypto so... :-/

https://github.com/kelektiv/node-uuid/blob/master/lib/rng-browser.js#L8-L9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants