OS?
Windows 10
Versions.
angular-cli: 1.0.0-beta.24
node: 6.9.2
os: win32 x64
Repro steps.
My angular-cli.json has the following:
...
"scripts": [
...
"../node_modules/jquery-ui/ui/widget.js",
"../node_modules/jquery-ui/ui/widgets/datepicker.js",
"../node_modules/jquery-ui-timepicker-addon/dist/jquery-ui-timepicker-addon.js",
...
],
...
The log given by the failure.
At https://github.com/trentrichardson/jQuery-Timepicker-Addon/blob/master/dist/jquery-ui-timepicker-addon.js#L15 I get Uncaught TypeError: Cannot read property 'timepicker' of undefined. I found this is because webpack is loading the scripts in the following order:
-jquery-ui-timepicker-addon.js
-widget.js
-datepicker.js
widget.js needs to load before jquery-ui-timepicker-addon.js. Why dose webpack not load in the same order as the configuration and how do you determine the order the files load?
Mention any other details that might be useful.
http://stackoverflow.com/questions/39964281/how-to-order-angular-cli-scripts