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", ... ], ...
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 because webpack loads the scripts in the following order:
jquery-ui-timepicker-addon.js
widget.js
datepicker.js
widget.js must be downloaded before jquery-ui-timepicker-addon.js . Why is the webpack dose not loading in the same order as in the configuration, and how do you determine the file upload order?
angular webpack angular-cli
William lohan
source share