From c6cf8b76274f53fb3d35f8e3384305627942031d Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Wed, 17 Feb 2021 09:26:44 -0500 Subject: [PATCH] Cannot read property 'startsWith' of undefined. Fixes gh-75 --- lib/config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/config.js b/lib/config.js index 559daa2..097f578 100644 --- a/lib/config.js +++ b/lib/config.js @@ -43,6 +43,10 @@ class Config { } resolvePath(input) { + if (!input) { + return input; + } + if (input.startsWith('~/')) { return path.join(os.homedir(), input.slice(2)); } else if (input === '~') {