Node -webkit + Angular.js Unprepared error: [$ injector: modulerr]

I have these files

lib/ |-angular.min.js |-angular-route.js |-angular-resource.js index.html package.json 

Core index.html

 <html ng-app="example"> <head> <meta charset="utf-8"> <script src="lib/angular.min.js"></script> <script src="lib/angular-route.js"></script> <script src="lib/angular-resource.js"></script> </head> <body> <script> var app = angular.module('example', ['ngRoute']); </script> </body> </html> 

And package.json

 { "main": "index.html" , "name": "example" , "version": "1.0.0" , "window": { "toolbar": true , "frame" : true } } 

But when I run $ nw . this causes me this error:

 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.7/$injector/moduler... 
+5
source share
1 answer

I had a similar problem with ng Animate. It turned out that I installed a newer version of ngAnimate than angular.js, which I use. So of course, just check out the angular versions and other components.

  • angular.js - v1.2.7
  • angular -route - v1.2.7
  • angular -resource - v1.2.7
0
source

Source: https://habr.com/ru/post/1201533/


All Articles