[GH-ISSUE #8491] MacApp fails to build when building from source #5469

Open
opened 2026-04-12 16:42:02 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @devlux76 on GitHub (Jan 20, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8491

What is the issue?

I cloned the repo and was building the macapp and it fails to build. Can't find webpack.main.config
There's a webpack.main.config.ts file but that's not the file referenced. I tried to fix it myself and fell down a rabbit hole.
I'm just bringing this to the attention of whomever is maintaining it.

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

current head

Originally created by @devlux76 on GitHub (Jan 20, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8491 ### What is the issue? I cloned the repo and was building the macapp and it fails to build. Can't find webpack.main.config There's a webpack.main.config.ts file but that's not the file referenced. I tried to fix it myself and fell down a rabbit hole. I'm just bringing this to the attention of whomever is maintaining it. ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version current head
GiteaMirror added the bug label 2026-04-12 16:42:02 -05:00
Author
Owner

@crazyi commented on GitHub (Feb 24, 2025):

I came into the same issue, do you fix it? @devlux76

<!-- gh-comment-id:2678718781 --> @crazyi commented on GitHub (Feb 24, 2025): I came into the same issue, do you fix it? @devlux76
Author
Owner

@sammcj commented on GitHub (Mar 16, 2025):

I just started getting this as well:

 npm install
npm start

up to date, audited 1294 packages in 1s

276 packages are looking for funding
  run `npm fund` for details

31 vulnerabilities (3 low, 15 moderate, 13 high)

To address issues that do not require attention, run:
  npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

> ollama@0.0.0 start
> electron-forge start

✔ Checking your system
✔ Locating application
✔ Locating application
✖ Loading configuration
  › Cannot find module '/Users/samm/git/ollama/macapp/webpack.main.config' imported from /Users/samm/git/ollama/macapp/forge.config.ts
◼ Preparing native dependencies
◼ Running generateAssets hook
(node:21802) ExperimentalWarning: Type Stripping is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

An unhandled rejection has occurred inside Forge:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/samm/git/ollama/macapp/webpack.main.config' imported from /Users/samm/git/ollama/macapp/forge.config.ts
at finalizeResolution (node:internal/modules/esm/resolve:275:11)
    at moduleResolve (node:internal/modules/esm/resolve:860:10)
    at defaultResolve (node:internal/modules/esm/resolve:984:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:736:12)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:660:25)
    at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:695:38)
    at ModuleLoader.resolveSync (node:internal/modules/esm/loader:718:52)
    at #cachedResolveSync (node:internal/modules/esm/loader:679:25)
    at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:407:50)
    at new ModuleJobSync (node:internal/modules/esm/module_job:343:34)
    at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:380:11)
    at loadESMFromCJS (node:internal/modules/cjs/loader:1565:24)
    at Module._compile (node:internal/modules/cjs/loader:1716:5)
    at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1826:10)
    at Module.load (node:internal/modules/cjs/loader:1469:32)
    at Function._load (node:internal/modules/cjs/loader:1286:12)
<!-- gh-comment-id:2727157685 --> @sammcj commented on GitHub (Mar 16, 2025): I just started getting this as well: ``` npm install npm start up to date, audited 1294 packages in 1s 276 packages are looking for funding run `npm fund` for details 31 vulnerabilities (3 low, 15 moderate, 13 high) To address issues that do not require attention, run: npm audit fix Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. > ollama@0.0.0 start > electron-forge start ✔ Checking your system ✔ Locating application ✔ Locating application ✖ Loading configuration › Cannot find module '/Users/samm/git/ollama/macapp/webpack.main.config' imported from /Users/samm/git/ollama/macapp/forge.config.ts ◼ Preparing native dependencies ◼ Running generateAssets hook (node:21802) ExperimentalWarning: Type Stripping is an experimental feature and might change at any time (Use `node --trace-warnings ...` to show where the warning was created) An unhandled rejection has occurred inside Forge: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/samm/git/ollama/macapp/webpack.main.config' imported from /Users/samm/git/ollama/macapp/forge.config.ts at finalizeResolution (node:internal/modules/esm/resolve:275:11) at moduleResolve (node:internal/modules/esm/resolve:860:10) at defaultResolve (node:internal/modules/esm/resolve:984:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:736:12) at #cachedDefaultResolve (node:internal/modules/esm/loader:660:25) at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:695:38) at ModuleLoader.resolveSync (node:internal/modules/esm/loader:718:52) at #cachedResolveSync (node:internal/modules/esm/loader:679:25) at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:407:50) at new ModuleJobSync (node:internal/modules/esm/module_job:343:34) at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:380:11) at loadESMFromCJS (node:internal/modules/cjs/loader:1565:24) at Module._compile (node:internal/modules/cjs/loader:1716:5) at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1826:10) at Module.load (node:internal/modules/cjs/loader:1469:32) at Function._load (node:internal/modules/cjs/loader:1286:12) ```
Author
Owner

@rick-github commented on GitHub (Jan 5, 2026):

Is this still an issue?

<!-- gh-comment-id:3708735428 --> @rick-github commented on GitHub (Jan 5, 2026): Is this still an issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5469