#useTheme must be used within a ThemeContextProvider

8 messages · Page 1 of 1 (latest)

outer topaz
#

Hey, I updated my packages to

    "@tanstack/react-devtools": "^0.9.9",
    "@tanstack/react-form": "1.28.4",
    "@tanstack/react-form-devtools": "^0.2.17",

And I am getting the error shown in the screenshot

Inspecting the browser source:

// node_modules/@tanstack/form-devtools/node_modules/@tanstack/devtools-ui/dist/esm/components/theme.js
var ThemeContext = createContext(void 0);
function useTheme() {
  const context = useContext(ThemeContext);
  if (!context) {
    throw new Error("useTheme must be used within a ThemeContextProvider");
  }
  return context;
}

Shall I open a GitHub issue? @pulsar crag

eager igloo
#

The Error you're showing is coming from the DevTools-Package.

#devtools would be the right channel (or GitHub-Repo) to report it

pulsar crag
outer topaz
eager igloo
pulsar crag
#

oh, that‘s a good point actually