Skip to content

Tag: electron

Replacing JS require(‘…’) with ESM imports

After updating node-fetch to v3, the following JavaScript error message appears when trying to launch my Electron app: Uncaught Exception: Error [ERR_REQUIRE_ESM]: require() of ES Module (…) not supported. Instead change the required … to a dynamic import() … I have found here that I should …

Sending message from Main to Renderer

Could someone help me out here. I’m completely confused on how to solve this. I’ve now spent about a week trying to find a solution for this but have come up short and there appears to be a lack of a solid solution online. I’ve made a github repository trying to demonstrate the issue. In sho…