Skip to content

github-ci worker: npm ci fails out of the box (wrangler peer conflict on @cloudflare/workers-types) #14298

Backlog

Description

@dezren39

Found while verifying #14170 Q7 (queue task 21705), 2026-11-24.

npm ci in pkgs/github-ci/worker fails with current npm:

npm error code ERESOLVE
npm error While resolving: wrangler@4.167.0
npm error Found: @cloudflare/workers-types@4.20260702.1
npm error   dev @cloudflare/workers-types@"^4.20251011.0" from the root project
npm error Could not resolve dependency:
npm error peerOptional @cloudflare/workers-types@"^5.20261123.1" from wrangler@4.167.0

Evidence: fleet-command run 45371109465 (Node 22.23.5 via nix, otherwise clean checkout of main-era package.json/package-lock.json — the conflict is in the committed dependency set, not in any change under test).

Workaround used for the Q7 verification run: npm ci --legacy-peer-deps (installs the locked tree; typecheck + 91 tests pass).

Fix options: bump @cloudflare/workers-types to the ^5 line wrangler 4.167 expects (check @cloudflare/vitest-pool-workers 0.23 compat), or pin wrangler to a release whose peer range accepts ^4. Either way the result should make plain npm ci work again on a fresh checkout.

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Enqueued as queue task 23064 (repo-health-code-pilot, kind small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:14298) in the same pass as the filing, per the one-queue filing rule.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions