Skip to content

Commit f76cf17

Browse files
authored
fix(calm-suite): declare @docusaurus/faster as dependency in calmguard-docs (finos#2673)
The Docusaurus build for calmguard-docs fails with `Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@docusaurus/faster' imported from .../node_modules/@docusaurus/bundler/lib/importFaster.js`. Root cause: @docusaurus/core 3.10's `@docusaurus/bundler` imports `@docusaurus/faster` to honour the `future.experimental_faster` / `future.v4` Faster bundler path. `calm-suite/calm-guard/docs/docusaurus.config.ts` sets `future.v4: true`, which exercises the importFaster code path, but the package is not declared in `calm-suite/calm-guard/docs/package.json`. Fix: - Add `@docusaurus/faster: ^3.10.1` to `calm-suite/calm-guard/docs/package.json` (pinned to match the existing @docusaurus/core / @docusaurus/preset-classic). - Regenerate root lockfile via incremental `npm install --package-lock-only` — adds @docusaurus/faster + its 4 new transitive deps (@swc/html, swc-loader, @rspack/core, nested @docusaurus/types/commander) without touching any other workspace's resolutions. All 19 rollup platform-specific binaries preserved. Verified locally: - `npm ci` exits 0 - `npm run build --workspace calmguard-docs` exits 0 (was: `code 1`) Surfaced while preparing PR finos#2664 (A2 of Track A finos#2649) — the regression reproduces identically on plain `origin/main` with no local changes, so it is pre-existing on `main`, not caused by either Track A PR. Fixing it here in a small standalone PR keeps the Track A queue clean. Signed-off-by: Gourav Shah <gjs@opsflow.sh>
1 parent 2c5dc00 commit f76cf17

2 files changed

Lines changed: 584 additions & 127 deletions

File tree

calm-suite/calm-guard/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@docusaurus/core": "3.10.1",
19+
"@docusaurus/faster": "^3.10.1",
1920
"@docusaurus/preset-classic": "3.10.1",
2021
"@docusaurus/theme-mermaid": "^3.10.0",
2122
"@mdx-js/react": "^3.0.0",

0 commit comments

Comments
 (0)