Skip to content

Dev Tools writing logs on production build #1858

@Mikescops

Description

@Mikescops

Describe the bug

Hello,

I'm experiencing lot of logs from the dev tools being written in the console on production builds.

You can see it on my app here for instance: https://app.subnoto.com/login

Initially asked here: #1849

Your minimal, reproducible example

Mikescops@fc06537

Steps to reproduce

This happens in both dev and build mode but this should mainly be fixed for build (production) mode.

To see a live demo:

  1. Go to https://app.subnoto.com/login
  2. Open debug logs in the console

I took the simple example and removed the custom devtools plugin, just kept only react-form and it allows to reproduce the bug.

To see a version with minimal code:

  • Clone Mikescops@fc06537
  • pnpm --filter @tanstack/form-example-react-simple build
  • pnpm --filter @tanstack/form-example-react-simple preview

Expected behavior

No logs should be written on production builds.

How often does this bug happen?

Every time

Screenshots or Videos

Image

Platform

Version: "@tanstack/react-form": "1.23.9",


I have other tanstack libraries if that may have an impact:

        "@tanstack/react-form": "1.23.9",
        "@tanstack/react-query": "5.90.8",
        "@tanstack/react-table": "8.21.3",

TanStack Form adapter

None

TanStack Form version

1.23.9

TypeScript version

5.9.3

Additional context

No response

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