Error: Dynamic require of "node:stream" is not supported when using the @supabase/supabase-js client

I'm trying to use supabase client in my Hono API with cloudflare workers and I can't run the worker because of this error.

node version: v21.1.0

wrangler.toml:
compatibility_flags = [ "nodejs_compat" ]
compatibility_date = "2024-09-23"

Can anyone help with this? Is it even possible to use the supabase client?
Was this page helpful?