Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

Electron run by Capacitor in Ionic 5: console logging and live reload not working

$
0
0

I’ve used Electron standalone before, and console.log() commands in main.js worked just fine (output to IDE console) and the electron-reload module also worked fine when content changes were detected in the Electron root folder.

I’ve now started a new Ionic 5 project, and added Electron to the project via Capacitor. Capacitor makes a few necessary changes to Electron (e.g. renaming main.js to index.js etc), I’ve now also have to start electron via capacitor npx cap open electron .

In doing so, console.log() commands in index.js are now NOT being output to the IDE console, and the electron-reload module now serves a blank page when changes are detected…

Is this a capacitor limitation or what configurations must be done to make this work ?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>