JezerM / nody-greeter

LightDM greeter that allows to create wonderful themes with web technologies. Made in Node.js
https://web-greeter-page.vercel.app
GNU General Public License v3.0
125 stars 8 forks source link

Getting "Error: Cannot find module 'yargs'" at runtime on seat0 logs #50

Closed D3vil0p3r closed 1 month ago

D3vil0p3r commented 11 months ago

Environment

Bug description

@JezerM I installed nody-greeter by AUR package. After the install, when I run it by using the default gruvbox theme, at reboot nothing happens. I checked all LightDM logs and the only log file with errors was the one related to the seat0 (/var/log/lightdm/seat0-greeter.log) (so related to the nody-greeter). It produced the following error:

/etc/lightdm/Xgreeter: line 5: xsetroot: command not found
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'yargs'
Require stack:
- /opt/nody-greeter/resources/app.asar/js/index.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (/opt/nody-greeter/resources/app.asar/js/index.js:30:33)
    at Module._compile (node:internal/modules/cjs/loader:1116:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
[1097:1007/101325.882504:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[1008:1007/101326.135672:ERROR:object_proxy.cc(642)] 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”
[1008:1007/101326.135701:ERROR:select_file_dialog_impl_portal.cc(243)] Failed to read portal version property

I tried to install yargs module by npm install yargs but I'm continuing to get the same result.

Steps to reproduce

Expected behavior

Theme appearing at login time.

dem0ngo commented 5 months ago

Same exact issue here

JezerM commented 1 month ago

Hi! Sadly, I don't maintain the nody-greeter AUR package. Please contact with https://aur.archlinux.org/account/haxibami for further communication about this issue.