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.
This commit is contained in:
parent
25f4bb5557
commit
a7efc82944
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue