Skip to content

vp check fails in Yarn monorepo nested directory #1296

@rChaoz

Description

@rChaoz

Describe the bug

Yarn monorepos do not create a node_modules under every package, unlike pnpm. When running vp check from any nested directory, it fails with:

error: Linting could not start
Failed to find tsgolint executable: OXLINT_TSGOLINT_PATH points to '.\node_modules\.bin\tsgolint.cmd' which does not exist

This works correctly for pnpm monorepos, as pnpm symlinks node_modules in every package.

Steps to reproduce

  1. Create a new Yarn monorepo, note this currently fails due to Yarn monorepo creation fails #1295, so setting nodeLinker: node-modules is necessary after running vp create
  2. Run vp check - works
  3. cd packages/utils && vp check - fails

System Info

VITE+ - The Unified Toolchain for the Web

Environment:
  Version       24.4.0
  Source        engines.node

Tool Paths:
  node  C:\Users\Matei\.vite-plus\js_runtime\node\24.4.0\node.exe
  npm   C:\Users\Matei\.vite-plus\js_runtime\node\24.4.0\npm.cmd
  npx   C:\Users\Matei\.vite-plus\js_runtime\node\24.4.0\npx.cmd

Local vite-plus:
  vite-plus  v0.1.15

Tools:
  vite             v8.0.3
  rolldown         v1.0.0-rc.12
  vitest           v4.1.2
  oxfmt            v0.43.0
  oxlint           v1.58.0
  oxlint-tsgolint  v0.18.1
  tsdown           v0.21.7

Environment:
  Package manager  yarn v4.13.0
  Node.js          v24.4.0 (engines.node)

Used Package Manager

yarn

Validations

Metadata

Metadata

Assignees

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions