I am currently working on Electron with Babylon. I found this repo , which I mainly used as a template for my own project. Everything worked fine until I tried to add jquery.pep.js for other needs. I continue this error:
Unused error: cannot find jquery.pep.js module
I installed both libraries with "npm i -S jquery" and "npm i -S jquery.pep.js". To make jquery work, I added this script to the top of my index.html
<script> delete window.module; </script>
and this line is at the top of my main.js:
window.$ = window.jQuery = require('jquery');
Now jquery is working fine, but for some reason the jquery.pep.js module is still not found. I tried using "require" but I have the same error
main.js
window.$ = window.jQuery = require('jquery');
var pep = require('jquery.pep.js');
CSS/
img/
js/
- main.js
node_modules/
index.html
index.js
package.json
renderer.js