I am working on an Electron project, and when I try to enable jQuery, I get this error:
C:\Users\Matthew\Documents\Electron\ElectronProjects\Iris\js\jquery.min.js:4 Uncaught SyntaxError:
C:\Users\Matthew\Documents\Electron\ElectronProjects\Iris\js\jquery.min.js:4 b),b&&a.jQuery===n&&(a.jQuery=Hb),n},b||(a.jQuery=a.$=n),n});jQuery v3.0.0-pre
I tried to use the method recommended on the page "Problems with Electrons" (window. $ = Window.jQuery = require ('./../js/jquery.min.js');). This always causes this error.
Any ideas?
source
share