after patching my discord client with the vencord installer, i get this error when i try to run discord :
Uncaught Exception:
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/chokerman/.config/Vencord/dist/patcher.js from /opt/discord/resources/app.asar/index.js not supported.
patcher.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead rename patcher.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/chokerman/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Object.<anonymous> (/opt/discord/resources/app.asar/index.js:1:1)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at node:electron/js2c/browser_init:2:115672
at node:electron/js2c/browser_init:2:115875
at node:electron/js2c/browser_init:2:115879
at f._load (node:electron/js2c/asar_bundle:2:13330)
[41156:0520/000044.567498:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[41156:0520/000044.567526:ERROR:select_file_dialog_linux_portal.cc(274)] Failed to read portal version property
after patching my discord client with the vencord installer, i get this error when i try to run
discord
:this is on wayland on arch linux