electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.64k stars 1.74k forks source link

Uncaught Exception: Cannot find module "/foo.app/.../app.asar/build/electron.js" #3552

Closed pfbarnet closed 5 years ago

pfbarnet commented 5 years ago

Upon launching my app after build I get the following error:

A Javascript error occurred in the main process Uncaught Exception: Error: Cannot find module '/Users/foo/dist/mac/foo.app/Contents/Resources/app.asar/build/electron.js" etc.

Some details: The app in question is a chat app that utilizes Express and depends on a server. I'm using chatkit by Pusher.

screen shot 2018-12-16 at 1 43 22 pm
SupremeTechnopriest commented 5 years ago

Do you have that file added to your package.json under build.files? If not it wont be added to the build.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

saileshp56 commented 1 year ago

Do you have that file added to your package.json under build.files? If not it wont be added to the build.

I am having this same issue. What is electron.js supposed to be?