Open jbjornson opened 11 months ago
That API should be available in all recent browsers (anything updated since March 2022); which browser are you using? Do you have any special plugins or flags active?
Also are you connecting via localhost
or are you trying to connect from another computer on the network? (browsers may disable parts of the crypto
API if they don't think it's over a secure connection - http to localhost counts as secure, but http to a local IP address might not)
Also connecting via localhost
on macos. I tried with latest versions of Chrome, Brave and Safari and all failed. I hacked the code to use uuid
rather than node:crypto
and it works without issues.
-import { randomUUID } from 'node:crypto';
+import { v4 as uuidv4 } from 'uuid';
with changes to the code like:
- const id = randomUUID();
+ const id = uuidv4();
ah I misunderstood before; I thought you were seeing the error in the browser but I see you mean on the backend.
What version of NodeJS are you using? (node --version
) Refacto is tested on 18, 20, 21, and 22. Older versions of NodeJS are unsupported.
I get the following error in the console when running refacto locally. The retro page loads, but as soon as I try to submit a comment or action, it generates this console error (no reaction in the browser).