-
Couldn't load subscription status.
- Fork 2.7k
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
An error running yarn upgrade myDep where myDep needs "next" version.
error An unexpected error occurred: "expected manifest".
info If you think this is a bug, please open a bug report with the information provided in "/Users/talabes/repositories2/dynamic-process-editor/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/upgrade for documentation about this command.
If the current behavior is a bug, please provide the steps to reproduce.
With a package.json with:
dependencies: {
"myDep": "next"
}
Running yarn upgrade myDep when there's a new next version of myDep generates this error.
error An unexpected error occurred: "expected manifest".
info If you think this is a bug, please open a bug report with the information provided in "/Users/talabes/repositories2/dynamic-process-editor/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/upgrade for documentation about this command.
What is the expected behavior?
Not throw and error, and either
- Modify the
yarn.lock, and not thepackage.json. - Or modify both, changing the version in the
package.jsonto something like1.0.0-next.7(whatever the"next"tag points to).
I personally need the first option, but I don't know what the yarn developers think. I created this issue some time ago: #4632, and there's another that seems similar: #4382, #2788, #2648, #1690, #2154
Also, should yarn upgrade --next work? Or is there a way to upgrade all dependencies tagged with "next" (or any other tag)?
Please mention your node.js, yarn and operating system version.
yarn 1.2.1
node 8.7.0
macos 10.12.6