angularjsangularjs-injectorangularjs-1.5

AngularJS1.5 injector issue (MacOSX)


Hey all I'm getting this Error Message when trying to use 'gulp serve-dev' on my codebase (https://github.com/CraigOldfield/AngularJSWork). The steps to reproduce where as follows:

  1. Clone the repo onto my machine (this machine already had node installed and gulp (globally).
  2. Run npm install and bower install
  3. Run gulp serve-dev form the root directory
  4. Previous command opened a browser and the console is reporting the injector issue, this very same code worked this morning on my work (windows) computer, I am now on my home (Mac) computer.

Im very new to Mac so it could be something related to that, I'm hoping someone can give me some more information to help debug this issue.


Solution

  • For those looking at this question with the same problem, what worked for me is the following comment by Yadejo.

    Yadejo's comment "You should keep your versions of angular and angular-animate in sync. Take a look here: stackoverflow.com/a/32768153/3980911"

    Once I updated my bower.json file to have the same version for each of these dependancies, I ran 'npm install' and 'bower install' which fixed the issues I described in the question above.