Cumulus icon indicating copy to clipboard operation
Cumulus copied to clipboard

Uncaught Exception: Error: Cannot find module 'electron-settings'

Open star114 opened this issue 7 years ago • 5 comments

Hi,

I got an exception when starting to run the application that I compiled locally.

A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find module 'electron-settings' at Module._resolveFilename(module.js:470:15) ...

exception

Do you have any ideas for it?

star114 avatar Dec 13 '17 09:12 star114

I went through the same issue. I did mine with npm because yarn was giving me issues

install everything with npm install but install electron-settings module version 2.2.2 so do npm install [email protected] and then build with grunt build it should work

I used the latest npm and grunt

anitricks avatar Dec 28 '17 05:12 anitricks

@anitricks Thanks! I'll try it.

star114 avatar Jan 02 '18 01:01 star114

yarn is not working properly in my mac. (mac osx high sierra) I tried to build using npm as @anitricks mentioned above, and it works well.

Thank you, @anitricks!!

star114 avatar Jan 08 '18 13:01 star114

yarn dependency is broken currently.

build is successful, but running built app is failing due to "cannot find the module 'electron-settings'"

star114 avatar Jan 22 '18 09:01 star114

Try this. I worked for me. https://github.com/electron/electron-packager/issues/992#issuecomment-493643251

Amitabh95 avatar Oct 11 '20 20:10 Amitabh95