Skip to content

To use useThemeSwitcher, component must be within a ThemeSwitcherProvider Error #37

Description

@dukesx

I am using Next JS, and during dev mode, it doesnt throw this error but as soon as i test it with Jest using JSDOM, it throws me this error, although my provider is in _app.tsx , which should wrap the entire app under the provider but seems that this is not the case.

any help ?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions