From 77174cf3263ddb70862180c3ded86be1081ac64a Mon Sep 17 00:00:00 2001 From: Nanditha K <106753017+nanditha938@users.noreply.github.com> Date: Wed, 14 Aug 2024 17:34:08 +0530 Subject: [PATCH] Search issue fix 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 https://github.com/cmfcmf/docusaurus-search-local/pull/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. --- src/docusaurus/package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/docusaurus/package.json b/src/docusaurus/package.json index aabe5ec..7c3525b 100644 --- a/src/docusaurus/package.json +++ b/src/docusaurus/package.json @@ -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", @@ -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" },