Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running npm run build #46

Closed
matthieubruneau opened this issue Aug 24, 2023 · 2 comments
Closed

Error when running npm run build #46

matthieubruneau opened this issue Aug 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@matthieubruneau
Copy link

Environment

  • OS: arch
  • nodejs version: 18.16.1
  • nody-greeter version: Error when trying to get it

Bug description

Trying to test if nody-greeter succefully built, getting this error like in this issue #31

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)

Step tried

I tried to rebuilt the package after removing build/nody-asar, download again, checked if the yargs module was there, keeping the same error.

Any idea on what might be happening?

@matthieubruneau matthieubruneau added the bug Something isn't working label Aug 24, 2023
@matthieubruneau
Copy link
Author

I managed to fix the issue by removing all dependencies and then reinstalling them. I now don't have any errors during the npm run build and can set the greeter for lightdm without any issue.

@nxta
Copy link

nxta commented Aug 26, 2023

Worked around this by using Node 15 instead of 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants