-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
When using km200-api in one of my Angular projects I get:
TypeError: crypto_1.randomBytes is not a function. (In 'crypto_1.randomBytes(32)', 'crypto_1.randomBytes' is undefined)
The crypto package got deprecated few years back. By now the functionality got removed, hence the randomBytes function is undefined:
https://www.npmjs.com/package/crypto
Here it says:
This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
Please update km200-api to either the built-in implementation, or use nanoid or something else. Otherwise km200-api won't work with current environments anymore.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels