You need to dynamically import the module modal otherwise you get this error.
✘ [ERROR] service core:user:mcp-registry-api: Uncaught Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/
importing dynamically you get this:
/modal.client.ModalClient/AppGetOrCreate UNAVAILABLE: No connection established. Last error: Error [ERR_OPTION_NOT_IMPLEMENTED]: The options.ALPNProtocols option is not implemented
it feels more than I can work out as a consumer.
You need to dynamically import the module
modalotherwise you get this error.importing dynamically you get this:
it feels more than I can work out as a consumer.