Skip to content
Advertisement

Tag: bower

$(this) undefined via requirejs on bower and node

I am trying to develop an app with a modular approach using requirejs and include only as little jQuery code as possible as necessary. I have a basic SPA app o.html: app.js: main-built.js:483 Uncaught TypeError: Failed to set an indexed property on ‘Window’: Indexed property setter is not supported. Replacing code within console.log with $(‘body’) works, but $(this) or $(document)

Advertisement