GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `vp run --filter` reports a cycle on workspaces with `peer-` or `dev-` dep links between siblings · Issue #1610 · voidzero-dev/vite-plus

vp run --filter reports a cycle on workspaces with peer- or dev- dep links between siblings #1610

New issue
Copy link
New issue
Copy link
Open
Bug
Open
vp run --filter reports a cycle on workspaces with peer- or dev- dep links between siblings#1610
Bug
Copy link
Assignees
semimikoh
Labels
bugSomething isn't working
Milestone
RC

Description

@danielroe
danielroe
opened on May 17, 2026
Issue body actions

Describe the bug

discovered when playing around in nuxt/nuxt... (I tried to run vp run --filter './packages/**' prepack where nuxt depends on @nuxt/vite-builder and @nuxt/vite-builder has nuxt as a peer dep...)

the issue seems to be that vp run --filter includes devDependencies and peerDependencies in its dep graph...

(I think pnpm and turbo only follow dependencies for build order.)

Reproduction

https://github.com/danielroe/vp-cycle-repro

Steps to reproduce

pnpm install
pnpm --filter './packages/**' build   # succeeds in topological order
vp run --filter './packages/**' build # → error: Cycle dependency detected: app#build -> builder#build -> app#build

pnpm install warns about the cyclic workspace links but still completes; the build itself runs fine.

System Info

vp 0.1.21, pnpm 11.0.9, macOS arm64.

Used Package Manager

pnpm

Logs

❯ vp run --filter './packages/**' build
VITE+ - The Unified Toolchain for the Web

error: Cycle dependency detected: app#build -> builder#build -> app#build

Validations

  • Read the Contributing Guidelines.
  • Check that there isn't already an issue for the same bug.
  • Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
  • The provided reproduction is a minimal reproducible example.

Activity

  1. danielroe
    added
    pending triage
    on May 17, 2026
  2. danielroe
    added the
    Bug
    issue type on May 17, 2026
  3. semimikoh commented on May 29, 2026

    @semimikoh
    semimikoh
    on May 29, 2026
    Contributor
    More actions

    Confirmed — the root cause appears to be in the vite-task dependency, not in vite-plus itself.

    vp run derives its workspace ordering from the package graph. As of the pinned rev 5833b374, that graph creates edges for dependencies, devDependencies, and peerDependencies alike in vite_workspace/src/package.rs:52-54.

    Because of that, the peerDependencies back-edge between the two sibling packages is promoted into the build-order graph. The task planner then treats it as a real cycle and hard-errors at vite_task_plan/src/error.rs:176.

    This also explains why only vp run fails here. vp exec tolerates cycles through a Tarjan SCC fallback, while vp run requires an acyclic execution graph.

    So the fix should live upstream in vite-task: peerDependencies edges should be excluded from the build-order subgraph, matching pnpm and turbo behavior. Once that lands, vite-plus can pick up the fix by bumping the vite-task dependency revision.

    Upstream issue: voidzero-dev/vite-task#411

    Reacted by JongKyung Lee and Daniel Roe
  4. semimikoh commented on Jun 1, 2026

    @semimikoh
    semimikoh
    on Jun 1, 2026
    Contributor
    More actions

    Update: my earlier "exclude peerDependencies edges" diagnosis was wrong — I've withdrawn it.

    As discussed in voidzero-dev/vite-task#411, pnpm doesn't exclude peer/dev deps from ordering; it keeps all edges and just tolerates cycles by running the cyclic packages together as one chunk (failing only behind --disallow-workspace-cycles).

    The fix is in voidzero-dev/vite-task#414: keep all edges, drop only the package-ordering edges inside a cyclic SCC so the cyclic packages run together (explicit dependsOn cycles still error). vite-plus can pick it up via a vite-task rev bump once it lands.

    Reacted by MK (fengmk2) and JongKyung Lee
  5. fengmk2
    assigned
    semimikoh
    on Jun 1, 2026
  6. fengmk2
    added
    bugSomething isn't working
    and removed
    pending triage
    on Jun 1, 2026
  7. fengmk2
    added this to the Beta milestone on Jun 1, 2026
  8. fengmk2
    modified the milestones: Beta, RC on Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @semimikoh
    semimikoh

Labels

bugSomething isn't working

Type

Bug

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    • RC

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.