© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
1 reply
teseting

Issues with supabase + cloudflare workers + rolldown

Hi,
I am having trouble using the preview and deploy with supabase installed with cloudflare workers, react-router and rolldown

I get the error
Error: Calling `require` for "stream" in an environment that doesn't expose the `require` function.
    at async Object.fetch (file:///C:/Projects/psps/repro/node_modules/.pnpm/miniflare@4.20251011.1/node_modules/miniflare/dist/src/workers/core/entry.worker.js:4481:22)
Error: Calling `require` for "stream" in an environment that doesn't expose the `require` function.
    at async Object.fetch (file:///C:/Projects/psps/repro/node_modules/.pnpm/miniflare@4.20251011.1/node_modules/miniflare/dist/src/workers/core/entry.worker.js:4481:22)
when trying to load the preview page
the require is originating from the lib-*.js file and looks like that comes from supabase somehow

if i switch to roll up, it works. not sure if this is an issue with rolldown or not.

https://github.com/falsidge/repro
GitHub
GitHub - falsidge/repro
Contribute to falsidge/repro development by creating an account on GitHub.
GitHub - falsidge/repro
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase auth with Cloudflare workers
SupabaseSSupabase / help-and-questions
4y ago
Supabase Issues
SupabaseSSupabase / help-and-questions
13mo ago
Supabase/Cloudflare outage?
SupabaseSSupabase / help-and-questions
3mo ago
Issues with docker running Supabase locally
SupabaseSSupabase / help-and-questions
3y ago