Uncaught Exception: Error: Cannot find module 'electron-devtools-installer'
ScubaDrew opened this issue · 1 comments
ScubaDrew commented
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 commented
May I see the code containing the installExtension Function?