Angular JS Error - timepicker.js injector:modulerr

时间:2016-09-07 00:56:13

标签: javascript angularjs angularjs-injector

这是我的第一个AngularJS应用程序,所以我是一个小说,并不断尝试解决问题。但我在Chrome控制台中收到错误:

Uncaught Error: [$injector:modulerr]      
http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=klikdaily-merchant
&…2F%2F127.0.0.1%3A8080%2Fnode_modules%2Fangular%2Fangular.min.js%3A439%3A21)
(anonymous function) @ angular.js:1829
(anonymous function) @ angular.js:31768
q    @ angular.js:4681
g    @ angular.js:31768
cb   @ angular.js:31768
c    @ angular.js:31768B
c    @ angular.js:31768f
e    @ angular.js:31768
(anonymous function) @ angular.js:31768
b    @ angular.js:31768
Sf   @ angular.js:31768
d    @ angular.js:31768

插入模块'angular.circular.timepicker.js'之后一切都很好,而且出现了错误。

有什么想法?先谢谢

我的模块列表

angular.module('klikdaily-merchant',['ngMaterial','angular.circular.timepicker'
,'ngMessages', 'ngAnimate', 'vAccordion' , 'material.svgAssetsCache','ngRoute',
'jkAngularCarousel','ngCookies','ngMdIcons'])

我的剧本列表

<script src="./node_modules/angular/angular.min.js"></script>
<script src="./node_modules/angular-animate/angular-animate.min.js"></script>
<script src="./node_modules/angular-aria/angular-aria.min.js"></script>
<script src="./node_modules/angular-material/angular-material.min.js"></script>
<script src="./node_modules/angular-route/angular-route.min.js"></script>
<script src="./node_modules/angular-messages/angular-messages.min.js"></script>
<script src="./node_modules/angular-cookies/angular-cookies.min.js"></script>
<script src="./node_modules/angular-material-icons/angular-material-icons.min.js"></script>
<script src="./node_modules/angular-lib/svg-assets-cache.js"></script>
<script src="./node_modules/angular-lib/v-accordion.js"></script>
<script src="./node_modules/angular-circular-timepicker/moment/moment.js"></script>
<script src="./node_modules/angular-circular-timepicker/dist/javascript/angular.circular.timepicker.js"></script>
<script src="app/app.js"></script>
<script src="app/jk-carousel.min.js"></script>
<script src="https://cdn.smooch.io/smooch.min.js"></script>

我从

中选择timepicker.js

http://angularscript.com/angularjs-circular-date-time-picker/

1 个答案:

答案 0 :(得分:1)

请尝试注入这样的依赖关系 - &#39; angular.circular.timepicker&#39;没有&#39; js&#39;扩展

&#13;
&#13;
angular.module('klikdaily-merchant',['ngMaterial','angular.circular.timepicker'
,'ngMessages', 'ngAnimate', 'vAccordion' , 'material.svgAssetsCache','ngRoute',
'jkAngularCarousel','ngCookies','ngMdIcons'])
&#13;
&#13;
&#13;