Open newbeelearn opened 1 year ago
The problem is "Uncaught Error: Some functionality, such as asynchronous I/O, timeouts, and generating random
values, can only be performed while handling a request." on crypto.getRandomValues
.
Xid relies on global state and may need to be implemented with durable objects.
https://developers.cloudflare.com/workers/configuration/durable-objects/
i see thanks for the confirmation.
cloudflare workers are not exactly compatible with nodejs they need special compatibilty flag to emulate nodejs. For instance process may not be available in runtime. Would this library work on it?