cmfcmf / docusaurus-search-local

Offline / Local Search for Docusaurus v2. Try it live at:
https://cmfcmf.github.io/OpenWeatherMap-PHP-API/
MIT License
438 stars 67 forks source link

Module not found: Can't resolve '@theme/hooks/useDocs' #26

Closed shinout closed 3 years ago

shinout commented 3 years ago

Bug description

An error occurred: Module not found: Can't resolve '@theme/hooks/useDocs' after running yarn build.

Reproduction

Environment

Package Versions

yarn list v1.21.1
├─ @cmfcmf/docusaurus-search-local@0.4.0
├─ @docusaurus/core@2.0.0-alpha.55
├─ @docusaurus/mdx-loader@2.0.0-alpha.55
├─ @docusaurus/plugin-content-blog@2.0.0-alpha.55
├─ @docusaurus/plugin-content-docs@2.0.0-alpha.55
├─ @docusaurus/plugin-content-pages@2.0.0-alpha.55
├─ @docusaurus/plugin-google-analytics@2.0.0-alpha.55
├─ @docusaurus/plugin-google-gtag@2.0.0-alpha.55
├─ @docusaurus/plugin-sitemap@2.0.0-alpha.55
├─ @docusaurus/preset-classic@2.0.0-alpha.55
├─ @docusaurus/theme-classic@2.0.0-alpha.55
├─ @docusaurus/theme-search-algolia@2.0.0-alpha.55
├─ @docusaurus/types@2.0.0-alpha.55
└─ @docusaurus/utils@2.0.0-alpha.55

Node Version

v12.14.0

Docusaurus Environment

Additional Information

There seems to be no file like "hooks/useDocs.js" in this repository. Is the required file external one?

cmfcmf commented 3 years ago

Hi @shinout,

This is likely caused by the version of Docusaurus you are using. Please upgrade to at least v2.0.0-alpha66 and let me know if it works!🎄