[Bug] `yarn set version classic` fails with `Error: Invalid semver version`
See original GitHub issue- I’d be willing to implement a fix
Describe the bug
Command yarn set version classic
fails with Error: Invalid semver version
, this happens because because it is using the string 1.23.0-20200928.0848
as bundleVersion
in the function setVersion
in file packages/plugin-essentials/sources/commands/set/version.ts
This is probably an overflow of some math operation
To Reproduce
yarn set version classic
Screenshots
If applicable, add screenshots to help explain your problem.
Environment if relevant (please complete the following information):
- OS: Mac
- Node version 10
- Yarn version
1.2.2
Additional context
The same error will happen when you try to install a package from github as it needs to be built first
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:6 (1 by maintainers)
Top Results From Across the Web
semver | Yarn - Package Manager
Prints valid versions sorted by SemVer precedence Options: -r --range <range> Print versions that match the specified range. -i --increment [<level>] Increment ...
Read more >Invalid version descriptor "berry" while installing yarn for my ...
1, I tried to run the following command to set the version to 1.19.1, but it gives me the following error. D:\V2\Code Base\App1>yarn...
Read more >Advanced package manager features for npm, Yarn, and pnpm
A powerful Yarn Berry feature, especially for professional teams, is to bundle a particular Yarn Berry version with your project. When executed ...
Read more >All Docs - npm 中文文档
npm uses Semantic Versioning, or, as we often refer to it, SemVer, to manage versions and ranges of versions of packages. If you...
Read more >rush.json
correct error-underlining and tab-completion for editors such as VS Code. ... Specify a SemVer range to ensure developers use a Node.js version that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This no longer occurs in latest version and from sources
For anyone else landing here because you can’t upgrade or change versions, you can remove/rename the current yarn release (
.yarn/releases/yarn-xxx.cjs
) and comment outyarnPath
in your.yarnrc.rml
and then tryyarn set version x
again.