Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular JS error #23

Open
ranraj opened this issue Apr 5, 2016 · 1 comment
Open

Angular JS error #23

ranraj opened this issue Apr 5, 2016 · 1 comment

Comments

@ranraj
Copy link

ranraj commented Apr 5, 2016

There are some Angular JS error occurring in the master code. Some of my colleagues getting application up and running. I checked environment with them,but all same.

Environment details below.
Scala : 2.11.8
Activator : 1.3.9
SBT : 0.13.11
*Error : *
AppVersion.js:2 Uncaught ReferenceError: directivesModule is not defined
UserCtrl.js:31 Uncaught ReferenceError: controllersModule is not defined
CreateUserCtrl.js:33 Uncaught ReferenceError: controllersModule is not defined
UpdateUserCtrl.js:54 Uncaught ReferenceError: controllersModule is not defined
UserService.js:79 Uncaught ReferenceError: servicesModule is not defined
angular.js:11655Error: [ng:areq] http://errors.angularjs.org/1.3.15/ng/areq?p0=UserCtrl&p1=not%20aNaNunction%2C%20got%20undefined
at Error (native)
at http://localhost:9000/assets/lib/angularjs/angular.min.js:6:417
at Rb (http://localhost:9000/assets/lib/angularjs/angular.min.js:19:510)
at sb (http://localhost:9000/assets/lib/angularjs/angular.min.js:20:78)
at http://localhost:9000/assets/lib/angularjs/angular.min.js:75:396
at chrome-extension://ighdmehidhipcmcojjgiloacoafjmpfk/dist/hint.js:951:22
at http://localhost:9000/assets/lib/angularjs/angular.min.js:57:100
at r (http://localhost:9000/assets/lib/angularjs/angular.min.js:7:408)
at B (http://localhost:9000/assets/lib/angularjs/angular.min.js:56:471)
at g (http://localhost:9000/assets/lib/angularjs/angular.min.js:51:335)(anonymous function) @ angular.js:11655

@ranraj
Copy link
Author

ranraj commented Apr 5, 2016

There was an issue with coffee script loading order.
Issue : The app.js (Generated) is not loaded before the UserCtrl.js. So, I got "directivesModule is not defined" error.
Fix : Need to sort the javascripts : Seq[String] before loading the script files

Replace the below code in the index.html.scala line number 54.
@for(script <- javascripts.sorted) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant