From 7b5fd9e70c1d6b575cf337b0015cd55692e61f76 Mon Sep 17 00:00:00 2001 From: plfavreau <68549239+plfavreau@users.noreply.github.com> Date: Sun, 1 Mar 2026 00:15:34 +0100 Subject: [PATCH] fix(cli): use pathToFileURL for dynamic imports on Windows (#560) Node's ESM loader rejects bare Windows paths (e.g. C:\...) passed to dynamic import(), interpreting the drive letter as a URL protocol. Convert the package-manager.js path through pathToFileURL() to produce a valid file:// URL, matching the fix already applied to the server import on line 628. --- packages/web/bin/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/bin/cli.js b/packages/web/bin/cli.js index 79109ca4..518ea960 100755 --- a/packages/web/bin/cli.js +++ b/packages/web/bin/cli.js @@ -926,7 +926,7 @@ const commands = { executeUpdate, detectPackageManager, getCurrentVersion, - } = await import(packageManagerPath); + } = await import(pathToFileURL(packageManagerPath).href); // Check for running instances before update let runningInstances = [];