Skip to content

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

Closed

Description

@Ehesp

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

Activity

  1. LeCarbonator commented on Sep 24, 2025

    @LeCarbonator
    Contributor

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

  2. Ehesp commented on Sep 24, 2025

    @Ehesp
    Author

    Thanks for the super quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions