I'm working on upgrading a web-app that uses jquery-1.9.1, jquery-ui-1.10.3, runs on a JBoss AS 7.0 server and uses Internet Explorer-11.
So now I'm trying to upgrade jquery-1.12.4 to 3.0.0 using the jquery-migrate-3.0.0 plugin.
On running the app, the webpage does not load and I see the following errors in the browser's console :
SCRIPT5007: Unable to get property 'exports' of undefined or null reference
jquery-3.0.0.js (18,2)
Here's the corresponding code snippet from jquery-3.0.0.js
( function( global, factory ) {
"use strict";
if ( typeof module === "object" && typeof module.exports === "object" )
The error is in the last line above.
Because of this error I'm also getting "jQuery is undefined" errors in all the js files that are loaded after jquery-3.0.0.js, namely jquery-migrate-3.0.0.js, jquery-ui.js
Anyone have any insights on how to fix this? Wasn't facing this error in jquery 1.x (seems like some major change from 3.x onwards).