Fix Node compatibility error for Node @ 14 #62
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An incorrect setting for the
engines
filed in the project'spackage.json
is causing install errors for major versions of node above v10, such as the following:After running into this error I tried updating both node and yarn to the latest versions (
14.11.0
and1.22.5
respectively) and continued to get an incompatible module error.It would appear that the or condition isn't being checked, so while
^14.10.0
should satisfy>=12.3.0
, semver isn't checking against that condition and fast failing on^10.17.0
instead, limiting the major version range. Swapping the order of this semver rule may solve for this error.Additional CI tests may be required, but I'm unsure how to properly configure those.