Skip to content

Fix CI build: migrate @fluentui/web-components from v2 API to v3#1869

Merged
stephenegriffin merged 4 commits into
mainfrom
copilot/fix-github-actions-build-job
Jul 13, 2026
Merged

Fix CI build: migrate @fluentui/web-components from v2 API to v3#1869
stephenegriffin merged 4 commits into
mainfrom
copilot/fix-github-actions-build-job

Conversation

Copilot AI commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Dependabot bumped @fluentui/web-components to v3.0.2, which dropped the v1/v2 registration API (fluentButton(), provideFluentDesignSystem(), etc.), causing 9 TypeScript compile errors in the webpack build.

Changes

  • tsconfig.json: moduleResolution: "node""bundler" — required for TypeScript to resolve v3's package exports map sub-paths (e.g. @fluentui/web-components/button.js)

  • src/Scripts/ui/mha.ts and src/Scripts/ui/uiToggle.ts: Replace v2 FAST design system registration pattern with v3 side-effect imports:

    // Before (v2 API — no longer exported)
    import { fluentButton, fluentCheckbox, provideFluentDesignSystem } from "@fluentui/web-components";
    provideFluentDesignSystem().register(fluentButton(), fluentCheckbox(), ...);
    
    // After (v3 API)
    import "@fluentui/web-components/button.js";
    import "@fluentui/web-components/checkbox.js";
    // ...

    fluentToolbar is not imported — it was removed from v3 entirely.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build Fix CI build: migrate @fluentui/web-components from v2 API to v3 Jul 13, 2026
Copilot AI requested a review from stephenegriffin July 13, 2026 13:38
@stephenegriffin stephenegriffin marked this pull request as ready for review July 13, 2026 14:41
@stephenegriffin stephenegriffin merged commit ecefac6 into main Jul 13, 2026
7 checks passed
@stephenegriffin stephenegriffin deleted the copilot/fix-github-actions-build-job branch July 13, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants