Skip to content

Commit

Permalink
Search issue fix
Browse files Browse the repository at this point in the history
The search plugin was creating build issues because one of its dependencies (Cheerio) was upgraded and the search plugin package did not contain the necessary changes pertaining to this upgrade.

On the search plugin repo, until the PR containing changes related to Cheerio version is merged, we are adding a workaround in package.json as specified in cmfcmf/docusaurus-search-local#218

After the search plugin package is updated, the 'overrides' may not be necessary in package.json.

Also, the search plugin version is reverted to 1.2 as it is compatible with Docusaurus v2.
  • Loading branch information
nanditha938 committed Aug 14, 2024
1 parent 239d58d commit 77174cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@cmfcmf/docusaurus-search-local": "^1.1.0",
"@cmfcmf/docusaurus-search-local": "^1.2.0",
"@docusaurus/core": "^2.4.3",
"@docusaurus/plugin-content-docs": "^2.4.3",
"@docusaurus/preset-classic": "^2.4.3",
Expand All @@ -26,6 +26,9 @@
"react-player": "^2.10.1",
"remark-admonitions": "^1.2.1"
},
"overrides": {
"cheerio": "1.0.0-rc.12"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.4.3"
},
Expand Down

0 comments on commit 77174cf

Please sign in to comment.