From a7efc829440e6da06b8a5750d2607d8dac0bd4e2 Mon Sep 17 00:00:00 2001 From: "Arthur E. Jones" Date: Wed, 4 May 2022 15:50:59 -0500 Subject: [PATCH] fix: suppress missing module error - code as written expects the file may be absent and has a fallback implemented, so the error can be safely ignored. There may be a better strategy for dealing with this, however. --- load-config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/load-config.js b/load-config.js index 933ce99..719d778 100644 --- a/load-config.js +++ b/load-config.js @@ -1,5 +1,6 @@ let config; try { + // @ts-expect-error TS2307: we expect this file may not exist config = require('./config'); } catch (e) { let fs = require('fs');