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.

"Invalid Version: undefined" semver on version 3.x flow-typed

See original GitHub issue

Do you want to request a feature or report a bug? bug

What is the current behavior? after running yarn flow-typed install

UNCAUGHT ERROR: TypeError: Invalid Version: undefined
    at new SemVer (/path/project/node_modules/flow-typed/node_modules/semver/classes/semver.js:22:13)
error Command failed with exit code 1.

If the current behavior is a bug, please provide the steps to reproduce.

  • Install Fresh CRA
  • install flow-bin flow-typed
  • run yarn flow init
  • run yarn flow-typed install

What is the expected behavior?

  • should generate the flow-typed directory

If this is a feature request, what is motivation or use case for changing the behavior?

Local Environment Information If this issue is specific to the CLI, provide the results of running npx envinfo from the command line in a GitHub gist.

kubuntu: 19.04 node: 10.18.1 flow-typed: 3.1.0 flow-bin: 0.122.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:30
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

20reactions
randallbcommented, May 8, 2020

You can also pin using yarn resolutions in package.json.

https://classic.yarnpkg.com/en/docs/selective-version-resolutions/#toc-how-to-use-it

"resolutions": {
    "flow-typed/semver": "7.1.3"
  }
10reactions
dstaleycommented, Apr 17, 2020

This is almost certainly due to this bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use the semver.maxSatisfying function in semver - Snyk
maxSatisfying(['3.5.0', new SemVer('3.15.10')], '3.x || 4.x'); semver.gtr('3.5.0', ... undefined; // Check if there's an installed version. return { name,.
Read more >
Parcel SemVer bug - node.js - Stack Overflow
I have recently went through this issue, where parcel@1.12.4 kept throwing Invalid Version: undefined even after trying a very logical ...
Read more >
ionic/node_modules/@babel/parser/CHANGELOG.md ... - GitLab
Semver Policy: https://github.com/babel/babel/tree/main/packages/babel-parser#semver. Note: Gaps between patch versions are faulty, broken or test releases.
Read more >
@babel/code-frame | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >
Compare Versions | @elliemae/pui-cli - Open Source Insights
BSD-3-Clause AND MIT ... GHSA-4x5v-gmq8-25chRegular expression denial of service in semver-regex ... babel-plugin-transform-undefined-to-void 6.9.4.
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