memesthewordM
Convex Community3mo ago
1 reply
memestheword

The Tanstack start + clerk quick start is broken.

I'm receiving this error after scaffolding then running the dev server:

TypeError: serverEntry.default.fetch is not a function
    at file:///Users/me/Sites/broken/node_modules/.pnpm/@tanstack+start-plugin-core@1.134.9_@tanstack+react-router@1.134.9_react-dom@19.2.0_rea_296b946d533fbbf48eec0f3268f36200/node_modules/@tanstack/start-plugin-core/dist/esm/dev-server-plugin/plugin.js:64:59
TypeError: serverEntry.default.fetch is not a function
    at file:///Users/me/Sites/broken/node_modules/.pnpm/@tanstack+start-plugin-core@1.134.9_@tanstack+react-router@1.134.9_react-dom@19.2.0_rea_296b946d533fbbf48eec0f3268f36200/node_modules/@tanstack/start-plugin-core/dist/esm/dev-server-plugin/plugin.js:64:59
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)



Looks like there was a breaking change with clerk outlined here: https://www.answeroverflow.com/m/1420141142724448306
Below is the code
```
import {
createStartHandler,
defaultStreamHandler,
defineHandlerCallback,
} from "@tanstack/react-start/server";
import { createRouter } from "./router";
import { createClerkHandler } from "@clerk/tanstack-react-start/server";


const handlerFactory = createClerkHandler(
createStartHandler({ createRouter })
)

expor...
tanstack RC broke some code - TanStack
Was this page helpful?