Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docusaurus Canary - Can't resolve useThemeContext #116

Closed
homotechsual opened this issue Jan 24, 2022 · 1 comment · Fixed by #117
Closed

Docusaurus Canary - Can't resolve useThemeContext #116

homotechsual opened this issue Jan 24, 2022 · 1 comment · Fixed by #117

Comments

@homotechsual
Copy link
Contributor

Running against Docusaurus canary (which has some fixes for docs sidebar issues - redocusaurus is throwing an error:

Module not found: Error: Can't resolve '@theme/hooks/useThemeContext' in 'X:\Development\Repositories\CIPP Project\website\node_modules\docusaurus-theme-redoc\dist-jsx\theme\Redoc'

It appears similar to #96 and looks to be caused by this breaking change: facebook/docusaurus#6289

@homotechsual
Copy link
Contributor Author

Looks like the new construct is:

import { useColorMode } from '@docusaurus/theme-common';

rohit-gohri pushed a commit that referenced this issue Jan 28, 2022
This fixes issue #116 by applying the fix for the breaking change in the latest canary build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant