Feature request: provide a way to fix "no matching version found inside the workspace" automatically
I deal with this pretty often. Resolving merge conflicts in package.json may lead to incorrectly typed version of dependency. Would be nice, if, after displaying message ' No matching version found for [email protected] inside the workspace' pnpm install would continue with 'found 1.3.5 instead. Would you like to update and proceed? Yes/no'
You may automatically fix such issues with:
pnpm update --workspace -r
We can probably add this to the error message. Implementing a prompt sounds good to me as well.
not working

#metoo
not working
+1
Me too.
Why don't you just use the workspace:*, workspace:~, or workspace:^ version spec to reference dependencies from the workspace? In that case the dependency will always be linked from the workspace and you'll never have to change this.
Why don't you just use the
workspace:*,workspace:~, orworkspace:^version spec to reference dependencies from the workspace? In that case the dependency will always be linked from the workspace and you'll never have to change this.
That would be the case if it worked, but for me (And apperantly a few others around here), it'll complain that the version mismatches or is not found at all. Which in turn prevents the use of pnpm almost altogether.
I agree with the other comments. I'm not having this happen with a monorepo/workspace, I'm having this happen in general. I'm upgrading a library, and the newer version depends on a newer version of a previously installed library. the lockfile is preventing the upgrade.
Until we have a reproduction available we can't fix it
Happy pnpm user here who ran into this issue.
@Azoraqua @craigmiller160 what are your version numbers? I'm using YYYY.MM.DD-SNAPSHOT for version numbering right now, as my modules are not quite ready for production.
This is what broke this process! It seems pnpm does some validation on the version number string - despite referencing it as "workspace:*" in my package.json.
I changed my version numbers to 0.1.0 and all was well. With guidance from PNPM on how they want this to work, I would be happy to patch.