rhysd / electron-about-window

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

Setting about-window with electronforge and its webpack plugin #67

Closed titieo closed 3 years ago

titieo commented 3 years ago

Hi, there. Thanks for creating such a good package. I've run to problem while trying to make this work in my project (I'm using electron-forge and its webpack plugin) My repo can be found on Github My config files for about-window is here Here is my problem:

image image

maximborisov commented 3 years ago

I have the same problem

dtslvr commented 3 years ago

I have the same problem after upgrading electron from version 12.0.5 to 14.0.1.

Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
    Policy set or a policy with "unsafe-eval" enabled. This exposes users of
    this app to unnecessary security risks.

For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
Uncaught TypeError: Cannot read properties of undefined (reading 'app')
    at EventEmitter.<anonymous> (renderer.ts:5)
    at EventEmitter.emit (events.js:376)
    at Object.onMessage (electron/js2c/renderer_init.js:81)
nosferatu500 commented 3 years ago

you can try to use my fork: yarn add @nosferatu500/about-window

npm install @nosferatu500/about-window

Based on Electron 14

dtslvr commented 3 years ago

Seems to be fixed for me via https://github.com/rhysd/electron-about-window/releases/tag/v1.15.0 👍🏻 Successfully tested with Electron 14 and 15.

rhysd commented 3 years ago

Thank you for confirming that. Closing.