Sveltekit + Lucia: Error: The script will never generate a response.

A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's I/O context have already finished.
✘ [ERROR] Uncaught (in response) Error: The script will never generate a response.


Command to run sveltekit:
 "dev": "wrangler pages dev .svelte-kit/cloudflare --port 5173",


I'm curious if I'm doing something wrong or if the lucia library itself has a "hanging" promise within the helper function I'm using... Has anyone deployed Lucia + Sveltekit in cloudflare pages?
Was this page helpful?