Which project does this relate to?
Start
Describe the bug
Calling a server function that uses a custom serialization adapter throws a SerovalDeserializationError when any server function is called from the client entry point (client.tsx).
- Define a
startInstance with custom serializationAdapters in start.ts
- Call any server function from the client entry point
- Call a server function that uses a custom serialization adapter
- A
SerovalDeserializationError occurs
Complete minimal reproducer
https://github.com/roccomaniscalco/tanstack-start-createSerializationAdapter
Steps to Reproduce the Bug
pnpm i && pnpm dev
- open localhost:3000
- Click "Get Animal" button
- Observe
SerovalDeserializationError in console
Expected behavior
As a user, I expected custom serialization adapters to deserialize successfully, but instead I am seeing a SerovalDeserializationError.
Screenshots or Videos
No response
Platform
- Router / Start Version:
"@tanstack/react-router": "1.170.16",
"@tanstack/react-start": "1.168.26",
- OS: macOS
- Browser: Chrome
- Browser Version: 149.0.7827.156 (Official Build) (arm64)
- Bundler: vite
- Bundler Version: ^8.0.0
Additional context
No response
Which project does this relate to?
Start
Describe the bug
Calling a server function that uses a custom serialization adapter throws a
SerovalDeserializationErrorwhen any server function is called from the client entry point (client.tsx).startInstancewith customserializationAdaptersinstart.tsSerovalDeserializationErroroccursComplete minimal reproducer
https://github.com/roccomaniscalco/tanstack-start-createSerializationAdapter
Steps to Reproduce the Bug
pnpm i && pnpm devSerovalDeserializationErrorin consoleExpected behavior
As a user, I expected custom serialization adapters to deserialize successfully, but instead I am seeing a
SerovalDeserializationError.Screenshots or Videos
No response
Platform
Additional context
No response