I’m using electron to build a simple editor. So far i’m loving electron, however I’m having one issue I just cant figure out. I’m including a js file however i’m repeatedly getting ‘TypeError: Cannot read property ‘init’ of undefined’ errors. The script works fine in browser, just not in electron. I’ve tried the normal
<script src="medium-editor.min.js"></script> but that didn’t work, after a little googling, I found
<script>window.$ = window.MediumEditor = require('./medium-editor.min.js');</script> but still no luck. Any ideas?