Skip to content

Commit

Permalink
fix(deprecation): fix error with missing instance version
Browse files Browse the repository at this point in the history
  • Loading branch information
acburdine committed May 9, 2021
1 parent cd66328 commit a98f794
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utils/deprecation-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ async function deprecationChecks(ui, system) {
ui.log(nodeDeprecated());
}

const showGhostDeprecation = (await system.getAllInstances(false)).some(instance => semver.lt(instance.version, '3.0.0'));
const showGhostDeprecation = (await system.getAllInstances(false))
.some(instance => instance.version && semver.lt(instance.version, '3.0.0'));

if (showGhostDeprecation) {
ui.log(ghostDeprecated());
}
Expand Down

0 comments on commit a98f794

Please sign in to comment.