Example given: I'm on "react": "^16.8.0-alpha.1", current latest version is 16.8.6, yarn upgrade react -L doesn't do anything.
yarn v1.15.2
Edit: yarn upgrade react@latest works though.
Hi @desmap,
can you provide the commands and outputs that you have got?
I can not reproduce it.
```
mkdir yarn-react-test
โ projects cd yarn-react-test
โ yarn-react-test yarn init -y
yarn init v1.16.0
warning The yes flag has been set. This will automatically answer yes to all questions, which may have security implications.
success Saved package.json
โจ Done in 0.04s.
โ yarn-react-test yarn add [email protected] --registry https://registry.npmjs.org
yarn add v1.16.0
info No lockfile found.
[1/4] ๐ Resolving packages...
[2/4] ๐ Fetching packages...
[3/4] ๐ Linking dependencies...
[4/4] ๐จ Building fresh packages...
success Saved lockfile.
success Saved 6 new dependencies.
info Direct dependencies
โโ [email protected]
info All dependencies
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โโ [email protected]
โจ Done in 0.70s.
โ yarn-react-test yarn upgrade-interactive --latest
yarn upgrade-interactive v1.16.0
info Color legend :
"
"
"
? Choose which packages to update. (Press
dependencies
name range from to url
โฏโฏ react latest 16.8.0-alpha.1 โฏ 16.8.6 https://reactjs.org/
โ yarn-react-test yarn upgrade --latest
yarn upgrade v1.16.0
[1/4] ๐ Resolving packages...
[2/4] ๐ Fetching packages...
[3/4] ๐ Linking dependencies...
[4/4] ๐จ Rebuilding all packages...
success Saved lockfile.
success Saved 5 new dependencies.
info Direct dependencies
โโ [email protected]
info All dependencies
...
โโ [email protected]
...
โจ Done in 0.63s.
I've seen this same issue when working in a workspaces monorepo, yarn upgrade foo --latest does not update my nested package.json but yarn upgrade foo@latest does.
Can testify; same issue as @butlersrepos. --latest doesn't work in Yarn Workspaces.
@DanielRuf do you have any updates about this issue?
yarn upgrade --latest just stoped to upgrade package.json file.
You can reproduce it with this steps:
yarn create react-appyarnyarn upgrade -L or yarn upgrade --latest yarn version is 1.19.1
any word on this bug? it certainly still seems to be a bug, yarn 1.22.4
This issue occurs in [email protected], regardless of monorepo and workspaces.
Until this issue is fixed, it is recommended to use npx npm-check-updates -u instead.
Or try yarn upgrade-interactive --latest.
Most helpful comment
Can testify; same issue as @butlersrepos.
--latestdoesn't work in Yarn Workspaces.