Skip to content

Commit 6818345

Browse files
committed
fix: node 24 incompatible with tauri unc paths causing test framework break
1 parent 1663426 commit 6818345

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
let commandId = 0, pendingCommands = {};
4242
if(window.__TAURI__){
4343
window.__TAURI__.path.resolveResource("node-src/index.js").then(async nodeSrcPath=>{
44+
// Strip Windows UNC prefix (\\?\) that Tauri adds on Windows
45+
// Node 24 doesn't handle UNC paths correctly in module resolution
46+
if (window.IS_WINDOWS && nodeSrcPath.startsWith('\\\\?\\')) {
47+
nodeSrcPath = nodeSrcPath.slice(4);
48+
}
4449
command = new window.__TAURI__.shell.Command('node', ['--inspect', nodeSrcPath]);
4550
command.on('close', data => {
4651
window.isNodeTerminated = true;

0 commit comments

Comments
 (0)