Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: provide a way to fix "no matching version found inside the workspace" automatically #4477

Open
MichaelKapustey opened this issue Mar 25, 2022 · 9 comments

Comments

@MichaelKapustey
Copy link

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 pkgname@1.2.12 inside the workspace' pnpm install would continue with 'found 1.3.5 instead. Would you like to update and proceed? Yes/no'

@zkochan
Copy link
Member

zkochan commented Mar 31, 2022

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.

@vallerydelexy
Copy link

not working
image

@Denny966
Copy link

Denny966 commented Feb 1, 2023

#metoo

@maxlxq
Copy link

maxlxq commented May 9, 2023

not working image

+1

@Azoraqua
Copy link

Me too.

@zkochan
Copy link
Member

zkochan commented May 27, 2023

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.

@Azoraqua
Copy link

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.

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.

@craigmiller160
Copy link

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.

@zkochan
Copy link
Member

zkochan commented Jul 24, 2023

Until we have a reproduction available we can't fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants