TanStackT
TanStack3mo ago
5 replies
urgent-maroon

r2.split is not a function

I have been struggling the last handful of days updating to Tanstack RC. I have it running in local dev just fine now, but deploying to vercel I get this error when opening the app. It installs and builds fine, but now getting the following:

2025-10-30T14:51:46.216Z [error] TypeError: r2.split is not a function
    at e3 (file:///var/task/chunks/_/index-BFAo-PI3.mjs:144633:19)
    ... 8 lines matching cause stack trace ...
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
  cause: TypeError: r2.split is not a function
      at e3 (file:///var/task/chunks/_/index-BFAo-PI3.mjs:144633:19)
      at file:///var/task/chunks/_/index-BFAo-PI3.mjs:144619:14
      at yr (file:///var/task/chunks/_/index-BFAo-PI3.mjs:144636:5)
      at file:///var/task/chunks/_/index-BFAo-PI3.mjs:150451:234
      at wr (file:///var/task/chunks/_/index-BFAo-PI3.mjs:150975:5)
      at file:///var/task/chunks/_/index-BFAo-PI3.mjs:150988:80
      at Nf (file:///var/task/chunks/_/index-BFAo-PI3.mjs:151244:5)
      at file:///var/task/chunks/_/index-BFAo-PI3.mjs:151246:10
      at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5),
  status: 500,
  statusText: undefined,
  headers: undefined,
  data: undefined,
  body: undefined,
  unhandled: true
}
Was this page helpful?