Skip to content

fix(ci): install latest 22.x Node to satisfy @microsoft/fast-build engines#36246

Merged
Hotell merged 1 commit into
microsoft:masterfrom
Hotell:fix/ci-node-version-fast-build
May 26, 2026
Merged

fix(ci): install latest 22.x Node to satisfy @microsoft/fast-build engines#36246
Hotell merged 1 commit into
microsoft:masterfrom
Hotell:fix/ci-node-version-fast-build

Conversation

@Hotell
Copy link
Copy Markdown
Contributor

@Hotell Hotell commented May 25, 2026

Problem

yarn install fails on Azure CI with:

error @microsoft/fast-build@0.6.0: The engine "node" is incompatible with this module. Expected version ">=22.18.0". Got "22.14.0"
error Found incompatible module.

Cause

  • PR feat(web-components): switch e2e test harness to @microsoft/fast-test-harness #36105 introduced @microsoft/fast-build@0.6.0 and @microsoft/fast-test-harness@0.1.0 to root devDependencies.
  • Both packages declare engines.node: ">=22.18.0" (verified across all published versions, 0.1.1 → 0.7.0 — so downgrading is not an option).
  • The 1ES container ships Node 22.14.0. The Azure pipeline's UseNode@1 task was pinned with version: '22.x' + checkLatest: false, so it just reused the container's older 22.x instead of installing a newer one.
  • GitHub Actions workflows are unaffected because actions/setup-node with node-version: '22' already resolves to the latest 22.x.

Fix

Set checkLatest: true on the UseNode@1 task in .devops/templates/tools.yml. This forces the task to fetch the latest 22.x when the container's bundled Node is older, while still respecting the 22.x major-version pin.

Verification

  • All Azure pipelines source Node setup from .devops/templates/tools.yml, so the fix applies broadly with a single change.
  • Local install is unaffected (devs use engines: ^22.0.0 || ^24.0.0 from root package.json; this only changes the ADO Node install task).

…gines

The 1ES container ships Node 22.14.0, but @microsoft/fast-build (and
@microsoft/fast-test-harness) require node >=22.18.0, causing yarn
install to fail. Set checkLatest: true on UseNode@1 so the task
upgrades to the latest 22.x when the bundled container Node is older.
@github-actions github-actions Bot added the CI label May 25, 2026
@github-actions
Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@github-actions
Copy link
Copy Markdown

Pull request demo site: URL

@Hotell Hotell marked this pull request as ready for review May 26, 2026 09:02
@Hotell Hotell requested a review from a team as a code owner May 26, 2026 09:03
@Hotell Hotell merged commit 116265d into microsoft:master May 26, 2026
12 checks passed
@Hotell Hotell deleted the fix/ci-node-version-fast-build branch May 26, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants