Skip to content

Commit 4c829ed

Browse files
committed
fix(cli): accept Bun 1.4 module-miss diagnostics
Recognize Bun 1.4's unquoted importer diagnostic for direct optional launcher imports without masking transitive failures. Fixes #129139. Amp-Thread-ID: https://ampcode.com/threads/T-01a037b7-66db-71f0-91e7-1578b383afb2
1 parent a3e2d40 commit 4c829ed

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎openclaw.mjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ const isDirectModuleNotFoundError = (err, specifier) => {
298298
message.includes(`Cannot find module "${specifier}"`);
299299
const launcherPath = fileURLToPath(import.meta.url);
300300
const bunLauncherImporterMiss =
301-
message.includes(` from '${launcherPath}'`) || message.includes(` from "${launcherPath}"`);
301+
message.includes(` from '${launcherPath}'`) ||
302+
message.includes(` from "${launcherPath}"`) ||
303+
message.includes(` imported from ${launcherPath}`);
302304

303305
const expectedUrl = new URL(specifier, import.meta.url);
304306
const expectedPath = fileURLToPath(expectedUrl);

0 commit comments

Comments
 (0)