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,5 +1,6 @@
|
||||||
let config;
|
let config;
|
||||||
try {
|
try {
|
||||||
|
// @ts-expect-error TS2307: we expect this file may not exist
|
||||||
config = require('./config');
|
config = require('./config');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
let fs = require('fs');
|
let fs = require('fs');
|
||||||
|
|
Loading…
Reference in a new issue