Message Boards
Error including momet.js [Mismatched anonymous define() module]
Davide Trevi, modified 7 Years ago.
Error including momet.js [Mismatched anonymous define() module]
New Member Posts: 6 Join Date: 3/1/17 Recent Posts
Hello, I'm trying to include moment.js in my project, but something is doing wrong.
I included the .js in liferay-portlet.xml like this:
<header-portal-javascript>/js/lib/moment.js</header-portal-javascript>
but when I load the web page, I'm getting this warning:
Mismatched anonymous define() module: function() { 'use strict';
Someone can help me?
Thanks
I included the .js in liferay-portlet.xml like this:
<header-portal-javascript>/js/lib/moment.js</header-portal-javascript>
but when I load the web page, I'm getting this warning:
Mismatched anonymous define() module: function() { 'use strict';
Someone can help me?
Thanks