Skip to content

Commit 652eecd

Browse files
committed
fix: test suite break with node24 upgrade in windows. tauri UNC paths not accepted by node 24
1 parent 930130f commit 652eecd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/node-loader.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,11 @@ function nodeLoader() {
637637

638638
window.__TAURI__.path.resolveResource("src-node/index.js")
639639
.then(async nodeSrcPath=>{
640+
// Strip Windows UNC prefix (\\?\) that Tauri adds on Windows
641+
// Node 24 doesn't handle UNC paths correctly in module resolution
642+
if (Phoenix.platform === "win" && nodeSrcPath.startsWith('\\\\?\\')) {
643+
nodeSrcPath = nodeSrcPath.slice(4);
644+
}
640645
if(Phoenix.platform === "linux") {
641646
// in linux installed distributions, src-node is present in the same dir as the executable.
642647
const cliArgs = await window.__TAURI__.invoke('_get_commandline_args');

0 commit comments

Comments
 (0)