Closed viktorfa closed 2 months ago
I got ReferenceError: crypto is not defined when using the client on Node 18 in AWS Lambda.
ReferenceError: crypto is not defined
It can be fixed in your code with the line global.crypto = require("node:crypto");
global.crypto = require("node:crypto");
Thank you for reporting this! :)
@viktorfa This should now be fixed. Please Reopen the issue if you still have an issue :)
I got
ReferenceError: crypto is not defined
when using the client on Node 18 in AWS Lambda.It can be fixed in your code with the line
global.crypto = require("node:crypto");