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

Uncaught Exception: Error: Cannot find module 'electron-devtools-installer' #241

Open
ScubaDrew opened this issue Sep 17, 2023 · 1 comment

Comments

@ScubaDrew
Copy link

ScubaDrew commented Sep 17, 2023

Following the install directions:

npm install electron-devtools-installer --save-dev

Works like a charm.

However, when we built our electron app in production mode, then we get the following error when we launched the app:

`A JavaScript error occurred in the main process

Uncaught Exception:
Error: Cannot find module 'electron-devtools-installer'
Require stack:
- /Applications/CCC.app/Contents/Resources/app.asar/build/electron/main.js

How can we get our app to have electron-devtools-installer to work when we are developing locally but not break things when we do production builds?

Thanks!

@xBiei
Copy link

xBiei commented Sep 26, 2023

May I see the code containing the installExtension Function?

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