@Zoddo, I fully agree. Thank you very much for you time helping me out finding the culprit.
Search Criteria
Package Details: discord_arch_electron 1:0.0.108-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/discord_arch_electron.git (read-only, click to copy) |
---|---|
Package Base: | discord_arch_electron |
Description: | Discord using system provided electron for increased security and performance |
Upstream URL: | https://discord.com |
Keywords: | chat discord discord-stable discordapp electron video voice |
Licenses: | custom |
Conflicts: | discord |
Provides: | discord |
Submitter: | johnnyapol |
Maintainer: | Zoddo (Thaodan, SunRed) |
Last Packager: | Zoddo |
Votes: | 202 |
Popularity: | 3.30 |
First Submitted: | 2020-05-19 23:51 (UTC) |
Last Updated: | 2025-09-04 18:20 (UTC) |
Dependencies (8)
- electron (electron-launcherAUR, electron-nightly-binAUR, electron-nightly-binAUR)
- libxss
- asar (make)
- curl (curl-gitAUR, curl-c-aresAUR) (make)
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR) (optional) – Pulseaudio support
- python-capstone (optional) – Required for Krisp patcher
- python-pyelftools (python-pyelftools-gitAUR) (optional) – Required for Krisp patcher
- xdg-utils (busking-gitAUR, xdg-utils-slockAUR, mimiAUR, mimi-gitAUR, xdg-utils-handlrAUR, openerAUR, mimejs-gitAUR, xdg-utils-mimeoAUR) (optional) – Open files
Required by (28)
- beautiful-discord-git (requires discord)
- cia-accesa (requires discord)
- clonehero-ptb (requires discord) (optional)
- devbook-bin (requires discord)
- discordrpc (requires discord) (optional)
- discordupdater (requires discord)
- equicord-hook (requires discord)
- horizonxi-launcher-bin (requires discord) (optional)
- jfcord-appimage (requires discord) (optional)
- mbcord-appimage (requires discord) (optional)
- moonlight-canary-bin (requires discord) (optional)
- moonlight-ptb-bin (requires discord) (optional)
- moonlight-stable-bin (requires discord) (optional)
- open-hexagon-git (requires discord) (optional)
- openasar-bin (requires discord) (optional)
- openasar-git (requires discord) (optional)
- openasar-install (requires discord)
- overlayed (requires discord) (optional)
- overlayed-bin (requires discord) (optional)
- overlayed-git (requires discord) (optional)
- Show 8 more...
Sources (3)
veganvelociraptr commented on 2025-09-07 07:42 (UTC)
Zoddo commented on 2025-09-06 21:01 (UTC)
@veganvelociraptr: You have nodejs 24.7.0 installed, but the exception reports Node.js v20.2.0
.
This is your issue (asar 4 requires node 22+). You should investigate why a different node version is running.
oech3 commented on 2025-09-06 16:02 (UTC) (edited on 2025-09-06 16:06 (UTC) by oech3)
How about https://gist.github.com/oech3/805cda74a055fc532fe36b4df580db4d which does not use asar
?
veganvelociraptr commented on 2025-09-05 06:15 (UTC) (edited on 2025-09-05 06:16 (UTC) by veganvelociraptr)
@Zoddo
/usr/bin/asar
/usr/bin/node
nodejs 24.7.0-1
asar 4.0.1-1
You're right that it seems broken, running asar by itself always results in:
file:///usr/lib/node_modules/@electron/asar/bin/asar.mjs:3
import packageJSON from '../package.json' with { type: 'json' };
^^^^
SyntaxError: Unexpected token 'with'
at DefaultModuleLoader.moduleStrategy (node:internal/modules/esm/translators:116:18)
at DefaultModuleLoader.moduleProvider (node:internal/modules/esm/loader:206:14)
at async link (node:internal/modules/esm/module_job:67:21)
Node.js v20.2.0
I don't know why or how to fix it. It's just the standard asar package from arch. Uninstalling asar, nodejs and electron and reinstalling them doesn't help. Downgrading asar to v3.4.1 does.
Zoddo commented on 2025-09-04 20:09 (UTC) (edited on 2025-09-04 20:11 (UTC) by Zoddo)
@veganvelociraptr: It looks like your asar
installation is broken.
What's the output of the following commands on your system?
which -a asar
which -a node
pacman -Q nodejs asar
veganvelociraptr commented on 2025-09-04 19:57 (UTC)
@Zoddo, error below with asar persists for me even after the latest update to v0.0.108 today.
veganvelociraptr commented on 2025-08-29 10:20 (UTC) (edited on 2025-09-02 16:22 (UTC) by veganvelociraptr)
Edit: To get rid of the error below I had to downgrade asar to v3.4.1.
==> Extracting sources...
-> Extracting discord-0.0.107.tar.gz with bsdtar
==> Starting prepare()...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 105k 0 105k 0 0 666k 0 --:--:-- --:--:-- --:--:-- 667k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2487k 0 2487k 0 0 13.5M 0 --:--:-- --:--:-- --:--:-- 13.5M
==> Removing existing $pkgdir/ directory...
-> Profile data will be generated.
==> Starting build()...
file:///usr/lib/node_modules/@electron/asar/bin/asar.mjs:3
import packageJSON from '../package.json' with { type: 'json' };
^^^^
SyntaxError: Unexpected token 'with'
at DefaultModuleLoader.moduleStrategy (node:internal/modules/esm/translators:116:18)
at DefaultModuleLoader.moduleProvider (node:internal/modules/esm/loader:206:14)
at async link (node:internal/modules/esm/module_job:67:21)
Node.js v20.2.0
==> ERROR: A failure occurred in build().
Aborting...
racehd commented on 2025-05-26 15:43 (UTC)
I was also having issues sharing video or desktop streaming, the actions failed with:
TypeError: window.createDiscordStream is not a function
I am using wayland/hyprland. I did follow the instructions in hyprlands wiki but this didn't resolve the issue since it appears to be a missing function within the electron app.
For now I have moved to vesktop which works out of the box with my setup.
tomaspinho commented on 2025-05-12 12:00 (UTC)
Had to change the download server hostname to stable.dl2.discordapp.net to be able to download the tar.gz from https://dl.discordapp.net/apps/linux/0.0.94/discord-0.0.94.tar.gz
Pinned Comments
Zoddo commented on 2022-09-15 17:54 (UTC) (edited on 2023-03-31 17:24 (UTC) by Zoddo)
Starting with 0.0.26-1 (2023-03-31):
Starting with 0.0.20-1 (2022-09-15):
$XDG_CONFIG_HOME/discord-flags.conf
: this works likeelectron-flags.conf
, you can set in this file the command line flags you want to pass to electron when running Discord (there are some useful flags in the wiki, especially if you are experiencing lag in the Discord UI).FAQ
Discord requires an update, but this package isn't yet updated
Check the wiki.
The Discord UI is lagging
Try to add the flags recommended in the wiki in
$XDG_CONFIG_HOME/discord-flags.conf
.Krisp not working
This is an issue that will likely never be fixed for this package. The Krisp module checks if Discord binaries are signed by Discord, which is not the case with this package.
See this comment and this GitHub issue for more details and possibles workarounds.