But when I try to run this script, I get this error:
require.js: Uncaught Error: Script error for "jquery-ui", needed by: jquery_ui_timepicker_addon
I've tried adding a shim to specify that timepicker needs jquery and jquery-ui, but doesn't help.
If I check the network tab in the browser, I can find jquery-ui.js, but also a 404 on another load on jquery-ui that comes from the jquery-ui-timepicker-addon.js file.
EDIT: I've edited the path in jquery-ui-timepicker-addon.js, when it tries to find jquery-ui:
define(['jquery', 'jquery-ui'], factory);
This gives the totaly wrong path, when I edited to this:
I've specified the files needed in my require-config.js:
And in my Module.js i'm loading the files in this order:
But when I try to run this script, I get this error:
I've tried adding a shim to specify that timepicker needs jquery and jquery-ui, but doesn't help.
If I check the network tab in the browser, I can find jquery-ui.js, but also a 404 on another load on jquery-ui that comes from the jquery-ui-timepicker-addon.js file.
EDIT: I've edited the path in jquery-ui-timepicker-addon.js, when it tries to find jquery-ui:
This gives the totaly wrong path, when I edited to this:
It worked. But that doesn't seems like the correct way?