-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Crypto.randomBytes is not a function–an uncaught TypeError #365
Comments
can you update es7-reflect-metadata 1.6.0 and typescript to 1.8.2 |
you might have to pull latest changes |
Seeing the same error with latest changes, is es7-reflect-metadata missing a dependency on crypto (^0.0.3)? https://github.com/gdi2290/es7-reflect-metadata/blob/master/package.json |
Updating es7-reflect-metadata to 1.6.0 and Thanks for your help and quick reply! |
Can confirm, latest polyfills and webpack config fixes the issue. Please close. |
Hooray! On Tuesday, March 1, 2016, Yuki K notifications@github.com wrote:
|
To fix this: PatrickJS/PatrickJS-starter#365
Hi there,
The error I am receiving:
Crypto.randomBytes is not a function
seems to derive from the
./~/es7-reflect-metadata/src/helper/gen-randombytes.ts file
gen-randonbytes.ts file includes:
I am running:
es7-reflect-metadata: ^1.5.5,
typescript: 1.7.5,
angular2: 2.0.0-beta.7,
npm: 3.8.0,
node: 5.6.0
Thanks in advance for your help!
Simon
The text was updated successfully, but these errors were encountered: