MarshallOfSound / electron-devtools-installer

An easy way to ensure Chrome DevTools extensions into Electron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ScubaDrew opened this issue · comments

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!

commented

May I see the code containing the installExtension Function?