T
TanStack4w ago
ratty-blush

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
}
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
}
3 Replies
ratty-blush
ratty-blushOP4w ago
"@tanstack/react-pacer": "^0.16.4",
"@tanstack/react-query": "^5.90.5",
"@tanstack/react-query-devtools": "^5.90.2",
"@tanstack/react-router": "1.133.36",
"@tanstack/react-router-devtools": "1.133.36",
"@tanstack/react-router-with-query": "1.130.17",
"@tanstack/react-start": "1.134.0",
"@tanstack/react-table": "^8.21.3",
"@tanstack/router-plugin": "1.133.36",
"@tanstack/zod-adapter": "1.133.36",
"@clerk/tanstack-react-start": "^0.26.5",
"nitro": "3.0.1-alpha.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"@tanstack/react-pacer": "^0.16.4",
"@tanstack/react-query": "^5.90.5",
"@tanstack/react-query-devtools": "^5.90.2",
"@tanstack/react-router": "1.133.36",
"@tanstack/react-router-devtools": "1.133.36",
"@tanstack/react-router-with-query": "1.130.17",
"@tanstack/react-start": "1.134.0",
"@tanstack/react-table": "^8.21.3",
"@tanstack/router-plugin": "1.133.36",
"@tanstack/zod-adapter": "1.133.36",
"@clerk/tanstack-react-start": "^0.26.5",
"nitro": "3.0.1-alpha.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
import tailwindcss from "@tailwindcss/vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import viteReact from "@vitejs/plugin-react";
import { nitro } from "nitro/vite";
import { defineConfig } from "vite";
import tsConfigPaths from "vite-tsconfig-paths";

export default defineConfig({
server: {
port: 3000,
},
plugins: [
nitro({
config: {
preset: "vercel",
},
}),
tsConfigPaths({
projects: ["./tsconfig.json"],
}),
tanstackStart(),
viteReact(),
tailwindcss(),
],
ssr: {
noExternal: ["xlsx", "@shopify/shopify-api", "motion", "recharts", "@reduxjs/toolkit"],
},
});
import tailwindcss from "@tailwindcss/vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import viteReact from "@vitejs/plugin-react";
import { nitro } from "nitro/vite";
import { defineConfig } from "vite";
import tsConfigPaths from "vite-tsconfig-paths";

export default defineConfig({
server: {
port: 3000,
},
plugins: [
nitro({
config: {
preset: "vercel",
},
}),
tsConfigPaths({
projects: ["./tsconfig.json"],
}),
tanstackStart(),
viteReact(),
tailwindcss(),
],
ssr: {
noExternal: ["xlsx", "@shopify/shopify-api", "motion", "recharts", "@reduxjs/toolkit"],
},
});
I'm getting this same thing on nitro v2 and v3
ratty-blush
ratty-blush4w ago
@pi0
optimistic-gold
optimistic-gold4w ago
@JJ Rise can you share your project?

Did you find this page helpful?