From 8fbcdf5604aac543b5a8c27e9a01ac04c6b53b4e Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 31 Jul 2026 14:38:05 -0300 Subject: [PATCH 1/2] LazyChunkLoader: Fix incorrectly logging unavoidable errors --- src/debug/loadLazyChunks.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debug/loadLazyChunks.ts b/src/debug/loadLazyChunks.ts index 72ded48bb..c3d328044 100644 --- a/src/debug/loadLazyChunks.ts +++ b/src/debug/loadLazyChunks.ts @@ -132,6 +132,10 @@ export async function loadLazyChunks() { if (wreq.m[entryPoint]) wreq(entryPoint); } catch (err) { + if (err instanceof TypeError && err.message.includes("reading 'nativeModules'")) { + continue; + } + console.error(err); } } From 738b7e44a6e91b8b3a58f47f6c39f3373bd5cd12 Mon Sep 17 00:00:00 2001 From: theo Date: Fri, 31 Jul 2026 21:40:47 +0100 Subject: [PATCH 2/2] fix edge case where Discord installs can go corrupt (#4472) --- src/main/persistAfterDiscordUpdates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/persistAfterDiscordUpdates.ts b/src/main/persistAfterDiscordUpdates.ts index b0661fd3e..a0a34bf53 100644 --- a/src/main/persistAfterDiscordUpdates.ts +++ b/src/main/persistAfterDiscordUpdates.ts @@ -54,7 +54,7 @@ function patchLatest() { const newAppAsar = join(resources, "app.asar"); const newAppAsarBackup = join(resources, "_app.asar"); - if (!existsSync(oldVencordAsar) || !existsSync(newAppAsar)) return; + if (!existsSync(oldVencordAsar) || !existsSync(newAppAsar) || existsSync(newAppAsarBackup)) return; console.info(`[Vencord] Detected Host Update (${currentVersion} -> ${latestVersion}). Repatching...`);