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

TypeError: process.electronBinding is not a function #99

Open
michadasis opened this issue Oct 12, 2022 · 1 comment
Open

TypeError: process.electronBinding is not a function #99

michadasis opened this issue Oct 12, 2022 · 1 comment

Comments

@michadasis
Copy link

After installing tslib which is a dependency and running npm start, it gets me the error below.
I used const ECx = require("electron-chrome-extension").default; import didn't work for me any possible way this is a mistake on my end?
App threw an error during load TypeError: process.electronBinding is not a function at Object.<anonymous> (/home/john/Desktop/genericsoundcloudclient/node_modules/electron-chrome-extension/lib/browser/chrome-extension.js:2:39) at Module._compile (node:internal/modules/cjs/loader:1118:14) at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:829:12) at c._load (node:electron/js2c/asar_bundle:5:13343) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/home/john/Desktop/genericsoundcloudclient/node_modules/electron-chrome-extension/lib/browser/engine/api.js:5:28) at Module._compile (node:internal/modules/cjs/loader:1118:14) at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:829:12) at c._load (node:electron/js2c/asar_bundle:5:13343) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:102:18) A JavaScript error occurred in the main process Uncaught Exception: TypeError: process.electronBinding is not a function at Object.<anonymous> (/home/john/Desktop/genericsoundcloudclient/node_modules/electron-chrome-extension/lib/browser/chrome-extension.js:2:39) at Module._compile (node:internal/modules/cjs/loader:1118:14) at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:829:12) at c._load (node:electron/js2c/asar_bundle:5:13343) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/home/john/Desktop/genericsoundcloudclient/node_modules/electron-chrome-extension/lib/browser/engine/api.js:5:28) at Module._compile (node:internal/modules/cjs/loader:1118:14) at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:829:12) at c._load (node:electron/js2c/asar_bundle:5:13343) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:102:18) (node:23165) UnhandledPromiseRejectionWarning: TypeError: process.electronBinding is not a function at Object.<anonymous> (/home/john/Desktop/genericsoundcloudclient/node_modules/electron-chrome-extension/lib/browser/chrome-extension.js:2:39) at Module._compile (node:internal/modules/cjs/loader:1118:14) at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:829:12) at c._load (node:electron/js2c/asar_bundle:5:13343) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/home/john/Desktop/genericsoundcloudclient/node_modules/electron-chrome-extension/lib/browser/engine/protocol.js:12:28) at Module._compile (node:internal/modules/cjs/loader:1118:14) at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:829:12) at c._load (node:electron/js2c/asar_bundle:5:13343) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:102:18) (Use electron --trace-warnings ...to show where the warning was created) (node:23165) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

@aaaddress1
Copy link

image
got the same issue here.

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

2 participants