A JavaScript error occurred in the main process #1373
Replies: 2 comments
-
flapak 1.6.11 |
Beta Was this translation helpful? Give feedback.
-
This error message is indicating that the module 'fs/promises' cannot be found. This error is often caused by using a version of Node.js that doesn't support ES6 module syntax, which includes the 'fs/promises' module. The module was introduced in Node.js version 14. Here's what you can do to address this issue:
If you're using CommonJS modules (Node.js versions prior to 14), you should use the require syntax:
|
Beta Was this translation helpful? Give feedback.
-
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'fs/promises'
Require stack:
at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
at Module._load (internal/modules/cjs/loader.js:848:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/app/motrix/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:8:20)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
at Module.load (internal/modules/cjs/loader.js:992:32)
Gtk-Message: 18:34:51.508: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:34:51.508: Failed to load module "pk-gtk-module"
Gtk-Message: 18:34:51.509: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:34:51.509: Failed to load module "pk-gtk-module"
Beta Was this translation helpful? Give feedback.
All reactions