T
TanStack6mo ago
plain-purple

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:'
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?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?