From a98f79482fedabf4e97026d90b720d99a92e960f Mon Sep 17 00:00:00 2001 From: Austin Burdine Date: Sun, 9 May 2021 09:25:22 -0500 Subject: [PATCH] fix(deprecation): fix error with missing instance version --- lib/utils/deprecation-checks.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/utils/deprecation-checks.js b/lib/utils/deprecation-checks.js index f12587d02..89ff14c43 100644 --- a/lib/utils/deprecation-checks.js +++ b/lib/utils/deprecation-checks.js @@ -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()); }