I need to implement the daterangepicker.js library to a custom block plugin I am a building.
I am using this library:
This library has as dependencies, jquery, jquery UI & moment.js. All of the dependencies but the last one are already loaded by require.js in moodle core.
Immediately I get the http://requirejs.org/docs/errors.html#mismatch error.
Moment.js checks if require.js is present to load AMD modules if so it should be able to define the module and return the object. However, there is a problem that is not allowing the module to be defined.
Is there something different I should be doing to load the AMD module moment.js ?
Thank you for any provided help.