crypto.randomUUID() was added to Node's built-in crypto module and later to the global Web Crypto object. This error usually means you're running an older Node runtime that predates it, or a different `crypto` (a browser polyfill, or a same-named local variable) is shadowing the built-in module.