I'm trying to include sockjs (v1.1.2) in my liferay 7 portlet, but I'm receiving this warning:
Mismatched anonymous define() module: function ()...
and then the library isn't loaded.
I directly included the .js file in my liferay-portlet.xml like this:
<header-portlet-javascript>/common/js/sockjs.js</header-portlet-javascript>
I don't have any idea to make it work