praveenn77 / docusaurus-lunr-search

Local / Offline Search for docusaurus
https://praveenn77.github.io/docusaurus-lunr-search-demo/
MIT License
492 stars 79 forks source link

v2.4.0 breaking changes when using github actions to build #111

Closed h8ku closed 1 year ago

h8ku commented 1 year ago

I had to force reverting back to v2.3.2 to get actions to build again. Didn't look into it, here is log from github actions.

warning "@docusaurus/core > react-loadable-ssr-addon-v5-slorber@1.0.1" has unmet peer dependency "react-loadable@*".
warning "@docusaurus/core > react-dev-utils > fork-ts-checker-webpack-plugin@6.5.3" has unmet peer dependency "typescript@>= 2.7".
warning "@docusaurus/preset-classic > @docusaurus/theme-search-algolia > @docsearch/react > @algolia/autocomplete-preset-algolia@1.9.3" has unmet peer dependency "@algolia/client-search@>= 4.9.1 < 6".
warning "@docusaurus/preset-classic > @docusaurus/theme-search-algolia > @docsearch/react > @algolia/autocomplete-preset-algolia > @algolia/autocomplete-shared@1.9.3" has unmet peer dependency "@algolia/client-search@>= 4.9.1 < 6".
warning "@docusaurus/preset-classic > @docusaurus/theme-search-algolia > @docsearch/react > @algolia/autocomplete-core > @algolia/autocomplete-plugin-algolia-insights@1.9.3" has unmet peer dependency "search-insights@>= 1 < 3".
[4/4] Building fresh packages...
success Saved lockfile.

Run yarn build
yarn run v1.22.19
$ docusaurus build
[INFO] [en] Creating an optimized production build...
[info] [webpackbar] Compiling Client
[info] [webpackbar] Compiling Server
[success] [webpackbar] Client: Compiled with some errors 

Error:  Client bundle compiled with errors therefore further build is impossible.
Module not found: Error: Can't resolve 'classnames' in '/github/workspace/src/theme/SearchBar'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
praveenn77 commented 1 year ago

Remove theme/searchBar folder Or try running npm run swizzle docusaurus-lunr-search SearchBar -- --eject --danger again after updating the version

felipecrs commented 1 year ago

Remove theme/searchBar folder

Does it mean that I don't need the theme/SearchBar folder at all?