Skip to content

tanstack react form devtools throws Error: useTheme must be used within a ThemeContextProvider #2064

Closed

Description

@BlankParticle

Describe the bug

tanstack react form devtools throws this error when loaded, and stops it from working

Uncaught (in promise) Error: useTheme must be used within a ThemeContextProvider
    at useTheme (chunk-56NUFDJ6.js?v=d10fd6f2:50:11)
    at useStyles (components-2SGOHMA5.js?v=d10fd6f2:626:21)
    at Shell (components-2SGOHMA5.js?v=d10fd6f2:927:18)
    at chunk-33JTHASM.js?v=d10fd6f2:575:12
    at untrack (chunk-33JTHASM.js?v=d10fd6f2:462:12)
    at Object.fn (chunk-33JTHASM.js?v=d10fd6f2:571:37)
    at runComputation (chunk-33JTHASM.js?v=d10fd6f2:734:22)
    at updateComputation (chunk-33JTHASM.js?v=d10fd6f2:717:3)
    at devComponent (chunk-33JTHASM.js?v=d10fd6f2:582:3)
    at createComponent (chunk-33JTHASM.js?v=d10fd6f2:1295:10)

Your minimal, reproducible example

https://stackblitz.com/github/tanstack/form/tree/main/examples/react/devtools

Steps to reproduce

The default devtools example shows the bug
Open devtools panel, and you will see the error in browser console

Expected behavior

shows the devtools for forms

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

MacOS, Chrome

TanStack Form adapter

None

TanStack Form version

1.28.4

TypeScript version

No response

Additional context

@tanstack/react-form-devtools version: 0.2.17

Activity

  1. BlankParticle commented on Mar 16, 2026

    @BlankParticle
    Author

    Has been fixed in version 0.2.19
    by #2079

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