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

Open
opened 2026-01-29 16:40:26 +00:00 by claunia · 0 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:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#467