Skip to content

Commit 964af92

Browse files
steipeteampagent
authored andcommitted
fix(cli): accept Bun 1.4 module-miss diagnostics (#129142)
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 Co-authored-by: Amp <[email protected]> (cherry picked from commit d1134a4)
1 parent c2ca5ac commit 964af92

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
@@ -293,7 +293,9 @@ const isDirectModuleNotFoundError = (err, specifier) => {
293293
message.includes(`Cannot find module "${specifier}"`);
294294
const launcherPath = fileURLToPath(import.meta.url);
295295
const bunLauncherImporterMiss =
296-
message.includes(` from '${launcherPath}'`) || message.includes(` from "${launcherPath}"`);
296+
message.includes(` from '${launcherPath}'`) ||
297+
message.includes(` from "${launcherPath}"`) ||
298+
message.includes(` imported from ${launcherPath}`);
297299

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

0 commit comments

Comments
 (0)