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

Cannot find module 'builder-util-runtime' #6481

Closed
myhrmans opened this issue Dec 8, 2021 · 1 comment
Closed

Cannot find module 'builder-util-runtime' #6481

myhrmans opened this issue Dec 8, 2021 · 1 comment

Comments

@myhrmans
Copy link

myhrmans commented Dec 8, 2021

  • Electron-Builder Version: 22.14.5
  • Node Version: 16.13.0
  • Electron Version: 16.0.1
  • Electron Type (current, beta, nightly): current
  • Target: Any, in this example the error is for Linux.

Building for Linux or any other platform works but when trying to start the application this error pops up:

A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'builder-util-runtime'
Require stack:
- /tmp/.mount_crayfi45cjE0/resources/app.asar/node_modules/electron-updater/out/main.js
- /tmp/.mount_crayfi45cjE0/resources/app.asar/dist/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> (/tmp/.mount_crayfi45cjE0/resources/app.asar/node_modules/electron-updater/out/main.js:4:32)
    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)

builder-util-runtime seems to be a package for HTTP utilities that is used by electron-builder.

Not sure why this is happening.

@myhrmans
Copy link
Author

myhrmans commented Dec 8, 2021

#6289
Found the issue. The problem was that I was using pnpm that was not working for the moment. Switchin to yarn solved the issue.

@myhrmans myhrmans closed this as completed Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant