ERR_UNSUPPORTED_ESM_URL_SCHEME bun and createServerFn

I try to use tanstack start and create ServerFn with bun, and when I import my server function into the index.tsx in the loader function I get this error

ERR_UNSUPPORTED_ESM_URL_SCHEME:
Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'bun:'


also importing it directly into my component, I get the same error.

did i miss something?
Was this page helpful?