jQuery.Deferred exception: require is not defined ReferenceError: require is not defined code example Example: require is not defined remove "type": "module" from package.json