-
Notifications
You must be signed in to change notification settings - Fork 156
vp check fails in Yarn monorepo nested directory #1296
Copy link
Copy link
Labels
Description
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
- Create a new Yarn monorepo, note this currently fails due to Yarn monorepo creation fails #1295, so setting
nodeLinker: node-modulesis necessary after runningvp create - Run
vp check- works 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
- 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackPriority
None yet
Effort
None yet