bcryptjs on Pages

Hello, is there a way to use bcryptjs on Pages? I get the error below on build time.
Error: Failed to publish your Function. Got error: Uncaught Error: Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative
at functionsWorker-0.5214857304581946.js:14092:15 in r
at functionsWorker-0.5214857304581946.js:14107:97 in t.genSaltSync
at functionsWorker-0.5214857304581946.js:15644:21
Error: Failed to publish your Function. Got error: Uncaught Error: Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative
at functionsWorker-0.5214857304581946.js:14092:15 in r
at functionsWorker-0.5214857304581946.js:14107:97 in t.genSaltSync
at functionsWorker-0.5214857304581946.js:15644:21
1 Reply
Walshy
Walshy15mo ago
What's your code?