diff --git a/src/config.ts b/src/config.ts index 8912d9503..6011652e9 100644 --- a/src/config.ts +++ b/src/config.ts @@ -46,7 +46,8 @@ export async function readDefaultConfig(root?: string): Promise { for (const ext of [".js", ".ts"]) { try { return await readConfig("observablehq.config" + ext, root); - } catch (error) { + } catch (error: any) { + if (error.code !== "ERR_MODULE_NOT_FOUND") throw error; continue; } }