Electron.net: Electron Jquery error

Created on 25 Oct 2019  路  2Comments  路  Source: ElectronNET/Electron.NET

Developed an application with core 2.2 MVC and followed all the steps to use electron. After starting the application, the electron window opens with the splash page, however, I am receiving an error for jquery - Uncaught TypeError: Cannot read property 'fn' of undefined. Googled a lot for a solution without success. Any assistance to resolve this would be greatly appreciated. Thanks
Electron error

bug

Most helpful comment

Are you trying to load jQuery yourself?

Electron already uses jQuery, so you have to load it a bit differently to use in your own scripts. I'm doing it like this:

You could copy this and replace the path to match your own project structure.

The asp-attribute is optional. You shouldn't need it for this file but I use it anyway.

All 2 comments

Are you trying to load jQuery yourself?

Electron already uses jQuery, so you have to load it a bit differently to use in your own scripts. I'm doing it like this:

You could copy this and replace the path to match your own project structure.

The asp-attribute is optional. You shouldn't need it for this file but I use it anyway.

Thanks so much Liam. Your solution worked like a charm

Was this page helpful?
0 / 5 - 0 ratings