Commit f76cf17
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments