crypto.randomUUID is undefined on your LAN dev server
Your app works on localhost and throws crypto.randomUUID is not a function when you open it on your phone at http://192.168.1.20:5173. randomUUID is secure-context only, and a private LAN IP over http is not a secure context.