Describe the bug#
The Angular package depends on Core, which in turn has a hard dependency on @tanstack/devtools-event-client. The @tanstack/devtools-event-client package exports an EventClient which uses a CustomEvent instance.
The problem is, when Angular SSR is enabled it will throw an error:
The "event" argument must be an instance of Event. Received an instance of CustomEvent
Your minimal, reproducible example#
Struggling to get an angular ssr example working
Steps to reproduce#
- Setup a new angular ssr project: https://angular.dev/guide/ssr
- Install tanstack form
- Run the application
Expected behavior#
Ideally it should only bundle on the client.
How often does this bug happen?#
Every time
Screenshots or Videos#
No response
Platform#
- MacOS
- Node v23.6.0
- TypeScript 5.9.2
- Angular 20.2.2
TanStack Form adapter#
angular-form
TanStack Form version#
1.23.0
TypeScript version#
5.9.2
Additional context#
angular-form is missing from the dropdown in the issue template
Resolved with
v1.23.1in PR #1761. Thanks for the report!