TanStackT
TanStack11mo ago
4 replies
broad-emerald

server fn error in fresh trellaux example

I decided to start learning about tanstack start by running the trelleaux example but I hit an exceptioin when hovering on the "first board" it creates:
ServerFn Request: app_db_board_ts--getBoard_createServerFn_handler

Server Fn Error!

Error: [
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [],
    "message": "Required"
  }
]
    at execValidator (/project/workspace/node_modules/@tanstack/react-start-client/dist/esm/createServerFn.js:242:30)
    at next (/project/workspace/node_modules/@tanstack/react-start-client/dist/esm/createServerFn.js:261:24)
    at executeMiddleware (/project/workspace/node_modules/@tanstack/react-start-client/dist/esm/createServerFn.js:279:10)
    at run (/project/workspace/node_modules/@tanstack/react-start-client/dist/esm/createServerFn.js:138:29)
    at AsyncFunction.__executeServer (/project/workspace/node_modules/@tanstack/react-start-client/dist/esm/createServerFn.js:171:18)
    at eval (/project/workspace/app/db/board.ts?tsr-directive-use-server=:22:19)
    at eval (/project/workspace/node_modules/@tanstack/react-start-server-functions-handler/dist/esm/index.js:84:24)
    at eval (/project/workspace/node_modules/@tanstack/react-start-server-functions-handler/dist/esm/index.js:92:9)
    at handleServerRequest (/project/workspace/node_modules/@tanstack/react-start-server-functions-handler/dist/esm/index.js:130:5)
    at async handleServerAction (/project/workspace/node_modules/@tanstack/react-start-server-functions-handler/dist/esm/index.js:13:20)
    at async _callHandler (file:///project/workspace/node_modules/h3/dist/index.mjs:1837:16)
    at async file:///project/workspace/node_modules/h3/dist/index.mjs:1978:19
    at async Object.callAsync (file:///project/workspace/node_modules/unctx/dist/index.mjs:72:16)
    at async Server.toNodeHandle (file:///project/workspace/node_modules/h3/dist/index.mjs:2270:7)
Was this page helpful?