T
TanStack2mo ago
other-emerald

(intermediate value).routerEntry.getRouter is not a function

Just migrated from 1.131.41 to 1.133.13 and trying to load my app I'm getting this:
TypeError: (intermediate value).routerEntry.getRouter is not a function
at getRouter (/Users/carlos/Dev/clickpath/medicitas/medicitas-dev/node_modules/.pnpm/@tanstack+start-server-core@1.133.13/node_modules/@tanstack/start-server-core/src/createStartHandler.ts:126:42)
TypeError: (intermediate value).routerEntry.getRouter is not a function
at getRouter (/Users/carlos/Dev/clickpath/medicitas/medicitas-dev/node_modules/.pnpm/@tanstack+start-server-core@1.133.13/node_modules/@tanstack/start-server-core/src/createStartHandler.ts:126:42)
9 Replies
other-emerald
other-emerald2mo ago
GitHub
Start BETA - Tracking · TanStack router · Discussion #2863
Tracking any important changes for TanStack Start during the BETA period. If you are coming from the ALPHA of TanStack Start, you can see all the breaking changes that were made here - #2403
other-emerald
other-emerald2mo ago
export was rename from createRouter to getRouter
other-emerald
other-emeraldOP2mo ago
Just noticed that. Thanks!
vicious-gold
vicious-gold2mo ago
@Manuel Schiller I am getting the same error on dev server startup or after HMR for the first few seconds, however if I wait 2-4 seconds and refresh the page, it loads successfully I do use getRouter in my router.tsx
other-emerald
other-emerald2mo ago
do you have a full reproducer for me to look at?
quickest-silver
quickest-silver2w ago
I was running into the same issue Claude changed export const getRouter = () => { to export function getRouter() { after I pointed it at the current version of https://tanstack.com/start/latest/docs/framework/react/build-from-scratch and it seems to have resolved it
Build a Project from Scratch | TanStack Start React Docs
[!NOTE] If you chose to quick start with an example or cloned project, you can skip this guide and move on to the guide. So you want to build a TanStack Start project from scratch? This guide will hel...
quickest-silver
quickest-silver2w ago
although I sometimes get ReferenceError: Cannot access '__vite_ssr_import_4__' before initialization now..
other-emerald
other-emerald2w ago
@aneidon did you get the error also in prod? or only in dev (before changing to function ?
quickest-silver
quickest-silver2w ago
Never noticed it in prod but only for lack of looking I’d say

Did you find this page helpful?