Since more than a week, the package fails to compile with the following weird error :
==> Starting build()...
[!] Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (/home/prostboa/Dev/AUR/rocketchat-desktop/src/Rocket.Chat.Electron-4.14.1/node_modules/electron/index.js:17:11)
at Object.<anonymous> (/home/prostboa/Dev/AUR/rocketchat-desktop/src/Rocket.Chat.Electron-4.14.1/node_modules/electron/index.js:21:18)
at Module._compile (node:internal/modules/cjs/loader:1873:14)
at Object..js (node:internal/modules/cjs/loader:2013:10)
at Module.load (node:internal/modules/cjs/loader:1596:32)
at Module._load (node:internal/modules/cjs/loader:1398:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:373:15)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:245:9)
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
==> ERROR: A failure occurred in build().
Tried cleaning al sorts of caches and unistalling other electron versions from the system, same results.
Pinned Comments