misterpoppins
CDCloudflare Developers
•Created by misterpoppins on 5/10/2024 in #pages-help
Wrangler deploy shows success but actually fails
Sorry, I missed the DM from Daniel and I think they are off now
9 replies
CDCloudflare Developers
•Created by misterpoppins on 5/10/2024 in #pages-help
Wrangler deploy shows success but actually fails
thank you, I really appreciate it!
Deployment ID: be972860-e56e-47ec-b4b9-be3101ad8c2d
9 replies
CDCloudflare Developers
•Created by misterpoppins on 4/29/2024 in #pages-help
ERROR: Could not resolve "crypto"
Howdy! The answer is "kinda" but I'm not sure it'll be very helpful. I was able trace the issue in this library, Hono Sessions, is with nanoid v4, which uses the Node Crypto API. Switching to nanoid v5 uses the Web Crypto API which is more universally available and resolves the proble (i'm like 95% sure it does; I was able to get it working but then I broke something with local npm module imports and just haven't had time to go dig).
It is still really confusing to me as to why Wrangler/Cloudflare don't respect calls to the node crypto API if you have the nodjs_compat enabled. It might have something to do with with the way Vite handles the references to the node crypto API, but I'm not sure
4 replies