-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't workingwaiting for feedbackWill autoclose in a while unless more data are providedWill autoclose in a while unless more data are provided
Description
Self-service
- I'd be willing to implement a fix
Describe the bug
We use "scoped" script names in our package.json
, and recently, some of those have stopped working, with Yarn complaining that the script can't be found.
For example:
"dev:vite": "NODE_ENV=development bin/vite dev",
And running it results in:
yarn dev:vite
Usage Error: Couldn't find a script named "vite".
This used to work fine up until very recently.
To reproduce
Create a package.json
file with scripts for dev
and dev:vite
. Try to run the script with yarn dev:vite
. Observe that it doesn't work.
Environment
System:
OS: macOS 15.5
CPU: (8) arm64 Apple M1 Pro
Binaries:
Node: 24.3.0 - /private/var/folders/vs/jmkpdfzx2sv_f3zxdb_ds4pm0000gn/T/xfs-141f1ee9/node
Yarn: 4.9.2 - /private/var/folders/vs/jmkpdfzx2sv_f3zxdb_ds4pm0000gn/T/xfs-141f1ee9/yarn
npm: 11.4.2 - ~/.n/bin/npm
Additional context
There is no issue with running yarn dev
, nor with other scripts with a colon like yarn lint:eslint
, so perhaps the issue is exclusive to the keyword "dev".
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwaiting for feedbackWill autoclose in a while unless more data are providedWill autoclose in a while unless more data are provided