I solved it, the problem is somewhere in the mechanism of require.js
:
(function( factory ) {
"use strict";
// if ( typeof define === 'function' && define.amd ) {
// // AMD
// define( ['jquery'], function ( $ ) {
// return factory( $, window, document );
// } );
// }
// else
if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
// root. This will give an error otherwise
root = window;
}
if ( ! $ ) {
$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
require('jquery') :
require('jquery')( root );
}
return factory( $, root, root.document );
};
}
else {
// Browser
factory( jQuery, window, document );
}
}
In the definition of DataTables I had to comment the first part (using define()
), because it gave me this error: Mismatched anonymous define() modules ...
Not it works 
Can you explain me why this happens?