Skip to content

v3.0.1 leading to Crypto error and asking to setRandomFallback #160

@ndbhamvani

Description

@ndbhamvani

Summary
For a GraphQL application, I'm using bcryptjs and it was working without any errors whilst v2.4.3 was being used.
However, on upgrade to v3.0.0 or v.3.0.1, I get the followiong error:-
Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative

Forcing v2.4.3 resolved this error, but that's a very old version now.

Node Version: 18.16.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions