-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
[Bug] Error: Can't resolve '@theme/hooks/useDocs' #93
Comments
I can confirm this. It breaks when updating According to their changelog, the hooks were moved from
(linking to facebook/docusaurus#6289) |
I am getting the same error here |
Hi This hook is considered an internal API, can you explain how it is used? Are there other internal apis that you are using? |
BREAKING CHANGE: the minimum supported Docusaurus version is now v2.0.0-beta10.
The use of this hook was a remnant of when
I am not 100% sure :) It definitely feels like I am using less and less internal APIs with each new beta of Docusaurus. |
BREAKING CHANGE: the minimum supported Docusaurus version is now v2.0.0-beta15.
Fixed in v0.10.0. |
@cmfcmf Thank you for the quick fix! |
great, thanks :) Let me know if you have a use-case for another internal API in the future |
Please describe the bug you are seeing
Can't build with canary using this plugin. Looks like useDocs has been replaced by
@docusaurus/plugin-content-docs/client
.facebook/docusaurus#6287
How can we best reproduce the bug?
No response
Which version of Docusaurus and @cmfcmf/docusaurus-search-local are you using?
@cmfcmf/docusaurus-search-local@0.9.4
@docusaurus/core@0.0.0-4470
Which Node.js version are you using?
v16.13.2
Which theme are you using?
Yes, I am using @docusaurus/theme-classic
How does your plugin config look like?
require.resolve("@cmfcmf/docusaurus-search-local"),
{
indexDocs: true,
indexBlog: false,
indexPages: true,
language: "en"
}
Additional context
No response
The text was updated successfully, but these errors were encountered: