Ultima in Electron application

Post Reply
jrupik
Posts: 2
Joined: 22 May 2017, 12:24
Location: Warsaw, Poland

11 Oct 2017, 14:53

Hi,
How to properly set up an application with Ultima theme. Application is starting but errors are reported: ERROR ReferenceError: jQuery is not defined, and most features does not work - menus are not clickable.
Do you have any experience?

Regards,
Joachim Rupik

stevin29
Posts: 1
Joined: 18 Oct 2017, 11:42

18 Oct 2017, 11:49

I have a maybe related problem after installing Schedule in my project, I try to run but the plugin doesn't appear and I get ReferenceError: jQuery is not defined.

Using Angular 4, webpack.

jrupik
Posts: 2
Joined: 22 May 2017, 12:24
Location: Warsaw, Poland

31 Oct 2017, 09:41

I have found a solution.
In index.html add following lines:

<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>

<!-- normal script imports etc -->
<!--<script src="./jquery-3.2.1.min.js"></script>-->

<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>

And template works.

User avatar
optimus.prime
Prime
Posts: 17686
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

01 Dec 2017, 14:00

Thank you for sharing the solution.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests