Dynamic require of "tty" is not supported

Hey! I'm running a long-time project that we are deploying on Vercel. I wanted to move it over to Cloudflare workers, but I've had few challenges along the way.

The most recent being this Dynamic require of "tty" is not supported when attempting to visit the site.

The project uses Sveltekit that builds with Rollup.

Is there any way to overcome this error? I don't know where to go from here. I've tried a few things with no luck.

Any ideas?
Was this page helpful?