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-settings' #110

Open
star114 opened this issue Dec 13, 2017 · 5 comments
Open

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

star114 opened this issue Dec 13, 2017 · 5 comments

Comments

@star114
Copy link

star114 commented Dec 13, 2017

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?

@anitricks
Copy link

anitricks commented Dec 28, 2017

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 electron-settings@2.2.2
and then build with grunt build
it should work

I used the latest npm and grunt

@star114
Copy link
Author

star114 commented Jan 2, 2018

@anitricks
Thanks!
I'll try it.

@star114
Copy link
Author

star114 commented Jan 8, 2018

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
Copy link
Author

star114 commented Jan 22, 2018

yarn dependency is broken currently.

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

@Amitabh95
Copy link

Try this. I worked for me.
electron/packager#992 (comment)

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

3 participants