Skip to content
Source
Sign inSign up
TanStack/form

[Angular] Core depends on @tanstack/devtools-event-client, which breaks SSR #1759

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

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

  1. Setup a new angular ssr project: https://angular.dev/guide/ssr
  2. Install tanstack form
  3. 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

  1. Resolved with v1.23.1 in PR #1761. Thanks for the report!

  2. Thanks for the super quick fix!

Sign in to join this conversation.