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

Can't resolve '@theme/hooks/useThemeContext' #96

Closed
thulasi-ram opened this issue Sep 21, 2021 · 6 comments
Closed

Can't resolve '@theme/hooks/useThemeContext' #96

thulasi-ram opened this issue Sep 21, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@thulasi-ram
Copy link

thulasi-ram commented Sep 21, 2021

Docusaurus - 2.0.0-beta.7 2.0.0-beta.6

Module not found: Error: Can't resolve '@theme/hooks/useThemeContext' in '..../docusaurus-pipeline-v2/node_modules/docusaurus-theme-redoc/dist-jsx/theme/Redoc'

Could it be because of this change: https://github.com/facebook/docusaurus/pull/2934/files

@rohit-gohri rohit-gohri added the bug Something isn't working label Sep 22, 2021
@rohit-gohri
Copy link
Owner

Definitely because of that change

@rohit-gohri rohit-gohri self-assigned this Sep 22, 2021
@rohit-gohri
Copy link
Owner

I tried to fix this but can't seem to find beta.7. Releases page only lists beta.6 as the latest version

@thulasi-ram
Copy link
Author

Apologies, it seems to happen on beta6 only.

@kago-dk
Copy link

kago-dk commented Oct 11, 2021

Any hints on how to resolve it?

@rohit-gohri
Copy link
Owner

beta.6 had some more breaking changes due to which I haven't been able to release a fix for this, they are fixed in the canary release, but I'm waiting for a more stable beta.7 before releasing. Could you downgrade to beta.5 till then?

@kago-dk
Copy link

kago-dk commented Oct 12, 2021

@rohit-gohri Yes, I finally got it to work. Thanks for sharing the details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants