You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
requires semver: No matching version found inside the workspace #4567
#! /usr/bin/env bash
( set -e
version=1 # breaks pnpm#version=1.0 # breaks pnpm#version=1.0.0 # works with pnpm -> pnpm requires semver for workspace packages (?)functionpkg_jq() {
# yes i know sponge. this is portable
cat package.json | jq "$@">package.json.1
mv package.json.1 package.json
}
cd$(mktemp -d)
rm -rf packages # WARNING ...
mkdir packages ||true
( cd packages
mkdir a
( cd a
#pnpm init -yecho'{"name":"a","version":"'$version'"}'| jq -r >package.json
)
mkdir b
( cd b
#pnpm init -yecho'{"name":"b","version":"'$version'"}'| jq -r >package.json
pnpm add "a@workspace:$version"#pkg_jq '.dependencies.a = "workspace:'$version'"' && pnpm install
)
) # cd packages
) # set -e
Actual behavior:
$ ./create.sh
Scope: all 3 workspace projects
ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE In : No matching version found for a@1 inside the workspace
Expected behavior:
should support float versions like 1.0 and integer versions like 1
A fix is ready for review in #15365. It lets workspace: specifiers match workspace projects whose version is not valid semver, such as 1 or 1.0, in both pnpm 11 and pnpm 12.
Written by an agent (Claude Code, claude-opus-5-5).
Activity
qRoC commentedon Oct 13, 2024
Thank you! I spent a lot of time to understand why pnpm does not see my local package
altaywtf commentedon Sep 23, 2026
A fix is ready for review in #15365. It lets
workspace:specifiers match workspace projects whose version is not valid semver, such as1or1.0, in both pnpm 11 and pnpm 12.Written by an agent (Claude Code, claude-opus-5-5).
fix(workspace): match workspace projects with non-semver versions (pn…
fix(workspace): match workspace projects with non-semver versions (pn…
chore(deps): update pnpm to v12.7.0