IBM Support

How to upgrade Worklight projects after updating jQuery

Troubleshooting


Problem

IBM Worklight comes with latest jQuery version. Occasionally developer code may require a specific jQuery version; for example, when using jQuery mobile. When a Worklight project is updated with a newer version of jQuery, upgrading that project to a new Worklight version may render parts of the code non-functional.

Symptom

The following error messages and upgrade messages may appear in Worklight Studio, the javascript console in the Mobile Browser Simulator, or in debug output from a simulator or mobile device.

  • Uncaught TypeError: Object <name> has no method 'require'
  • Uncaught TypeError: Object <name> has no method 'live'
  • The bundled jQuery was upgraded from <value_1> to <value_2> due to removal of deprecated functionality
[{"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Studio","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF022","label":"OS X"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.0;5.0.6.1;5.0.6;5.0.5.1;5.0.5;5.0.0.3;5.0.0.1;5.0","Edition":"Consumer;Enterprise","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS4HGH","label":"IBM Mobile Foundation"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Studio","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"","label":"Mac OS X"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.0;5.0.6.1;5.0.6;5.0.5.1;5.0.5;5.0.0.3;5.0.0.2;5.0.0.1;5.0","Edition":"Consumer;Enterprise","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Worklight

Software version:
6.0, 5.0.6.1, 5.0.6, 5.0.5.1, 5.0.5, 5.0.0.3, 5.0.0.1, 5.0

Operating system(s):
AIX, HP-UX, Linux, OS X, Solaris, Windows

Document number:
226383

Modified date:
19 August 2022

UID

swg21642795