rhysd / electron-about-window

'About This App' mini-window for Electron apps
https://www.npmjs.com/package/about-window
MIT License
409 stars 46 forks source link

electron: Failed to load URL: file:///Users/xxx/out/main/about.html with error: ERR_FILE_NOT_FOUND #88

Open tive6 opened 1 year ago

tive6 commented 1 year ago
import openAboutWindow from 'about-window'
export const createAboutWindow = () => openAboutWindow('../resources/logo.png')

It's terrible. Using it like this, running it gets an error like this

Uncaught Exception:
TypeError: module.paths is not iterable
at detectPackageJson (/Users/tiven/Desktop/dev/post-tools/out/main/index.js:204:35)
at injectInfoFromPackageJson (/Users/tiven/Desktop/dev/post-tools/out/main/index.js:223:17)
at openAboutWindow2 (/Users/tiven/Desktop/dev/post-tools/out/main/index.js:343:12)
at createAboutWindow (/Users/tiven/Desktop/dev/post-tools/out/main/index.js:353:3)
at MenuItem.click (node:electron/js2c/browser_init:2:30394)
at a._executeCommand (node:electron/js2c/browser_init:2:35790)

Console log prompt

(node:24956) electron: Failed to load URL: file:///Users/xxx/out/main/about.html with error: ERR_FILE_NOT_FOUND
(Use `Electron --trace-warnings ...` to show where the warning was created)