Skip to content
Source
Sign inSign up
TanStack/router

Upgrading from 1.131.44 to 1.131.50 broke build #5210

Send to my agent
Closedjohannesbremer(GitHub profile, opens in a new tab) opened this issue 3 comments

Which project does this relate to?

Router

Describe the bug

The issue occurs in my publicly available repo. When I upgrade from 1.131.44 to 1.131.50, I can no longer run vite build.

Your Example Website or App

https://github.com/johannesbremer/praxisplaner

Steps to Reproduce the Bug or Issue

git clone git@github.com:johannesbremer/praxisplaner.git pnpm i pnpm build // This works on 1.131.44 pnpm up pnpm build // This no longer works on 1.131.50

Expected behavior

As a user, I expect to be able to build my project.

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.131.50
  • OS: macOS
  • Bundler: vite
  • Bundler Version: 7.1.7

Additional context

> praxisplaner@0.0.1 gen:convex /Users/johannes/Code/praxisplaner
> pnpm exec convex codegen

Running TypeScript typecheck…
vite v7.1.7 building for production...
Generated route tree in 89ms
✓ 26 modules transformed.
✗ Build failed in 222ms
error during build:
[commonjs--resolver] Cannot read properties of undefined (reading 'find')
file: /Users/johannes/Code/praxisplaner/node_modules/.pnpm/@tanstack+start-client-core@1.132.2/node_modules/@tanstack/start-client-core/dist/esm/createServerFn.js
    at Object.handleCreateServerFnCallExpression [as handleCallExpression] (file:///Users/johannes/Code/praxisplaner/node_modules/.pnpm/@tanstack+start-plugin-core@1.131.50_@netlify+blobs@9.1.2_@tanstack+react-router@1.132._c5b4679db8bf547b21fc6efed7623117/node_modules/@tanstack/start-plugin-core/dist/esm/compilers.js:168:98)
    at file:///Users/johannes/Code/praxisplaner/node_modules/.pnpm/@tanstack+start-plugin-core@1.131.50_@netlify+blobs@9.1.2_@tanstack+react-router@1.132._c5b4679db8bf547b21fc6efed7623117/node_modules/@tanstack/start-plugin-core/dist/esm/compilers.js:111:42
    at Array.forEach (<anonymous>)
    at file:///Users/johannes/Code/praxisplaner/node_modules/.pnpm/@tanstack+start-plugin-core@1.131.50_@netlify+blobs@9.1.2_@tanstack+react-router@1.132._c5b4679db8bf547b21fc6efed7623117/node_modules/@tanstack/start-plugin-core/dist/esm/compilers.js:110:46
    at Array.forEach (<anonymous>)
    at enter (file:///Users/johannes/Code/praxisplaner/node_modules/.pnpm/@tanstack+start-plugin-core@1.131.50_@netlify+blobs@9.1.2_@tanstack+react-router@1.132._c5b4679db8bf547b21fc6efed7623117/node_modules/@tanstack/start-plugin-core/dist/esm/compilers.js:109:26)
    at NodePath._call (/Users/johannes/Code/praxisplaner/node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/path/context.js:49:20)
    at NodePath.call (/Users/johannes/Code/praxisplaner/node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/path/context.js:39:18)
    at NodePath.visit (/Users/johannes/Code/praxisplaner/node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/path/context.js:88:31)
    at TraversalContext.visitQueue (/Users/johannes/Code/praxisplaner/node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/context.js:90:16)
    at TraversalContext.visitSingle (/Users/johannes/Code/praxisplaner/node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/context.js:66:19)
    at TraversalContext.visit (/Users/johannes/Code/praxisplaner/node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/context.js:113:19)
    at traverseNode (/Users/johannes/Code/praxisplaner/node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/traverse-node.js:131:17)
    at Module.traverse (/Users/johannes/Code/praxisplaner/node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/index.js:53:34)
    at compileStartOutput (file:///Users/johannes/Code/praxisplaner/node_modules/.pnpm/@tanstack+start-plugin-core@1.131.50_@netlify+blobs@9.1.2_@tanstack+react-router@1.132._c5b4679db8bf547b21fc6efed7623117/node_modules/@tanstack/start-plugin-core/dist/esm/compilers.js:11:11)
    at transformCode (file:///Users/johannes/Code/praxisplaner/node_modules/.pnpm/@tanstack+start-plugin-core@1.131.50_@netlify+blobs@9.1.2_@tanstack+react-router@1.132._c5b4679db8bf547b21fc6efed7623117/node_modules/@tanstack/start-plugin-core/dist/esm/start-compiler-plugin.js:64:20)
    at Object.handler (file:///Users/johannes/Code/praxisplaner/node_modules/.pnpm/@tanstack+start-plugin-core@1.131.50_@netlify+blobs@9.1.2_@tanstack+react-router@1.132._c5b4679db8bf547b21fc6efed7623117/node_modules/@tanstack/start-plugin-core/dist/esm/start-compiler-plugin.js:46:16)
    at Object.handler (file:///Users/johannes/Code/praxisplaner/node_modules/.pnpm/vite@7.1.7_@types+node@24.2.1_jiti@2.6.0_lightningcss@1.30.1_terser@5.44.0_tsx@4.20.5_yaml@2.8.1/node_modules/vite/dist/node/chunks/dep-Bm2ujbhY.js:34051:13)
    at file:///Users/johannes/Code/praxisplaner/node_modules/.pnpm/rollup@4.44.2/node_modules/rollup/dist/es/shared/node-entry.js:22276:40
 ELIFECYCLE  Command failed with exit code 1.
  1. Hi there,

    You need to change on router.tsx line 21. createRouter() to getRouter(). Try again.

    Thanks

  2. you have different versions installed

    1.132.2

    and

    1.131.50

    file: /Users/johannes/Code/praxisplaner/node_modules/.pnpm/@tanstack+start-client-core@1.132.2/node_modules/@tanstack/start-client-core/dist/esm/createServerFn.js
        at Object.handleCreateServerFnCallExpression [as handleCallExpression] (file:///Users/johannes/Code/praxisplaner/node_modules/.pnpm/@tanstack+start-plugin-core@1.131.50_@netlify+blobs@9.1.2_@tanstack+react-router@1.132._c5b4679db8bf547b21fc6efed7623117/node_modules/@tanstack/start-plugin-core/dist/esm/compilers.js:168:98

    for upgrading instruction to Start RC (1.132) see https://github.com/TanStack/router/discussions/2863#discussioncomment-14052148

  3. you have different versions installed

    Sorry about that. I was looking at the version of the plugin.

    Thank you for the quick responses and pointing me to the solution. This resolved my issue.

Sign in to join this conversation.