Skip to content

@scaffald/ui-docs Docusaurus build fails (webpack ProgressPlugin schema) #377

Closed

Description

@thinkclay

nx run @scaffald/ui-docs:build (the packages/ui/docs-site Docusaurus site, in the Scaffald/ui submodule) fails:

ValidationError: Progress Plugin has been initialized using an options object that does not match the API schema … options has an unknown property 'name' / 'color' / 'reporters' / 'reporter'

A Docusaurus 3.9.2 × webpack version incompatibility — unrelated to app code. It surfaces as a failed task in pnpm prepush affected-build (non-blocking: the prepush stamp still writes; all other targets pass).

Fix: align the docusaurus/webpack versions in Scaffald/ui, or migrate the ProgressPlugin options. Low priority (docs site only).

Migrated from Linear SC-132 · state: Triage · priority: Low · created 2026-06-23

Activity

  1. added
    from-linear
    on Jul 16, 2026
  2. thinkclay commented on Jul 30, 2026

    @thinkclay
    ContributorAuthor

    Fixed in a7568ac — both builds pass and the pre-push exclusions are gone.

    Neither failure was in the docs source; both were dependency resolution, and both are fixed with a root pnpm override, so neither needed a submodule PR.

    docs-site (packages/sdk) — every @docusaurus/* dep is pinned to an exact 3.9.2 except theme-mermaid and plugin-ideal-image, which carry caret ranges and had floated to 3.10.x. Docusaurus refuses to load an official package whose version differs from core's: Invalid name=docusaurus-theme-mermaid version number=3.10.1.

    @scaffald/ui-docs (packages/ui) — @docusaurus/bundler asks for webpackbar ^6.0.1, whose plugin does super({name, color, reporters, reporter}) into webpack's ProgressPlugin. webpack resolves to 5.107 here (docusaurus only requires ^5.95.0), and 5.107 validates those options with additionalProperties: false, permitting none of them. webpackbar@7 passes only activeModules and handler, both valid, and its peer range is webpack 3 || 4 || 5.

    Pinning the two floating packages also collapsed an entire duplicate @docusaurus 3.10.1 tree — core, bundler, mdx-loader, theme-common and the rest were being installed twice. That is ~1400 lines of the lockfile diff.

    BUILD_EXCLUDES in scripts/prepush.sh is now just scaffald, kept because its build is the full Metro web export and CI covers it on the deploy path.

    Verified: both builds from cold with --skip-nx-cache; full prepush green with them included.

    Follow-on: the ui-docs build now gets far enough to report four broken doc links the failure had been hiding — two stale ./breadcrumbs paths, a link to TabBar (removed from the public API in SC-27), and a missing page for SegmentedControl, which is exported. Fixed in Scaffald/ui#15, which also restores onBrokenLinks: throw so the next one fails pre-push instead of shipping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    from-linearpriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions