Mac Build doesn't run with cannot find module error. #470

Closed
opened 2026-01-29 16:40:33 +00:00 by claunia · 6 comments
Owner

Originally created by @ajayplutus on GitHub (Mar 18, 2020).

Originally assigned to: @robertmuehsig on GitHub.

Hello,

I've created demo desktop application with asp.net core 2.2 on mac machine. I've created a build for mac os. I've got the issues on run the build :
Uncaught Exception:
Error: Cannot find module '/Applications/electron.net.host.app/Contents/Resources/bin/electron.manifest.json'
Require stack:

  • /Applications/electron.net.host.app/Contents/Resources/app.asar/main.js
  • at Module._resolveFilename (internal/modules/cjs/loader.js:717:15)
    at Function../lib/common/reset-search-paths.ts.Module._resolveFilename (electron/js2c/browser_init.js:7552:16)
    at Module._load (internal/modules/cjs/loader.js:622:27)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Module.require (internal/modules/cjs/loader.js:775:19)
    at require (internal/modules/cjs/helpers.js:68:18)
    at Object. (/Applications/electron.net.host.app/Contents/Resources/app.asar/main.js:20:26)
    at Module._compile (internal/modules/cjs/loader.js:880:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
Originally created by @ajayplutus on GitHub (Mar 18, 2020). Originally assigned to: @robertmuehsig on GitHub. Hello, I've created demo desktop application with asp.net core 2.2 on mac machine. I've created a build for mac os. I've got the issues on run the build : Uncaught Exception: Error: Cannot find module '/Applications/electron.net.host.app/Contents/Resources/bin/electron.manifest.json' Require stack: - /Applications/electron.net.host.app/Contents/Resources/app.asar/main.js - at Module._resolveFilename (internal/modules/cjs/loader.js:717:15) at Function../lib/common/reset-search-paths.ts.Module._resolveFilename (electron/js2c/browser_init.js:7552:16) at Module._load (internal/modules/cjs/loader.js:622:27) at Module._load (electron/js2c/asar.js:717:26) at Function.Module._load (electron/js2c/asar.js:717:26) at Module.require (internal/modules/cjs/loader.js:775:19) at require (internal/modules/cjs/helpers.js:68:18) at Object.<anonymous> (/Applications/electron.net.host.app/Contents/Resources/app.asar/main.js:20:26) at Module._compile (internal/modules/cjs/loader.js:880:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
claunia added the bug label 2026-01-29 16:40:33 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Mar 18, 2020):

did you execute the electronize init command in your project?

@GregorBiswanger commented on GitHub (Mar 18, 2020): did you execute the `electronize init` command in your project?
Author
Owner

@ajayplutus commented on GitHub (Mar 18, 2020):

Hi Gregor,

Thanks for reply.

I have already done this then I have created a build. After your reply I have type it again as shown below:

  • Test: demo mac$ electronize init
  • Adding our config file to your project...
  • Config file already in your project.
@ajayplutus commented on GitHub (Mar 18, 2020): Hi Gregor, Thanks for reply. I have already done this then I have created a build. After your reply I have type it again as shown below: > - Test: demo mac$ electronize init > - Adding our config file to your project... > - Config file already in your project.
Author
Owner

@GregorBiswanger commented on GitHub (Mar 18, 2020):

@robertmuehsig can you please test it with your mac.

@GregorBiswanger commented on GitHub (Mar 18, 2020): @robertmuehsig can you please test it with your mac.
Author
Owner

@ajayplutus commented on GitHub (Mar 19, 2020):

Hi @GregorBiswanger, I think @robertmuehsig has not responded since August 2019, can you please check with him and reply as soon as possible.

Thanks In advance.

@ajayplutus commented on GitHub (Mar 19, 2020): Hi @GregorBiswanger, I think @robertmuehsig has not responded since August 2019, can you please check with him and reply as soon as possible. Thanks In advance.
Author
Owner

@GregorBiswanger commented on GitHub (Mar 19, 2020):

unfortunately I don't have a mac to test it.. Robert is currently very busy with his family.. but please try to get help from the community, if no one answers there, please let me know again..
https://gitter.im/ElectronNET/community

if you have solved your problem please let me know and close the issue

@GregorBiswanger commented on GitHub (Mar 19, 2020): unfortunately I don't have a mac to test it.. Robert is currently very busy with his family.. but please try to get help from the community, if no one answers there, please let me know again.. https://gitter.im/ElectronNET/community if you have solved your problem please let me know and close the issue
Author
Owner

@ajayplutus commented on GitHub (Mar 19, 2020):

Hi @GregorBiswanger ,
Thanks for reply :)

I've created new web application and created build successfully.

@ajayplutus commented on GitHub (Mar 19, 2020): Hi @GregorBiswanger , Thanks for reply :) I've created new web application and created build successfully.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#470