(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:
9 Replies
other-emerald•2mo 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•2mo ago
export was rename from createRouter to getRouter
other-emeraldOP•2mo ago
Just noticed that. Thanks!
vicious-gold•2mo 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.tsxother-emerald•2mo ago
do you have a full reproducer for me to look at?
quickest-silver•2w 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 itBuild 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•2w ago
although I sometimes get
ReferenceError: Cannot access '__vite_ssr_import_4__' before initialization now..other-emerald•2w ago
@aneidon did you get the error also in prod? or only in dev (before changing to
function ?quickest-silver•2w ago
Never noticed it in prod but only for lack of looking I’d say