question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
remorsescommented, Nov 5, 2020

This no longer occurs in latest version and from sources

3reactions
joeyfigarocommented, Feb 4, 2022

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 out yarnPath in your .yarnrc.rml and then try yarn set version x again.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found