gulp command to create documentation runs but still have errors viewing the docs...
Per the read-me: "gulp docs" to build docs into dist/docs
the task runs successfully and writes everything to dist/docs, but it's not actually usable. I get the following error trying to view the docs:
Uncaught Error: [$injector:modulerr] Failed to instantiate module docsApp due to: Error: [$injector:modulerr] Failed to instantiate module angularytics due to: Error: [$injector:nomod] Module 'angularytics' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.3.0-rc.4/$injector/nomod?p0=angularytics at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:80:12 at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:1787:17 at ensure (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:1711:38) at module (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:1785:14) at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:4024:22 at forEach (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:330:20) at loadModules (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:4008:5) at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:4025:40 at forEach (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:330:20) at loadModules (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:4008:5) http://errors.angularjs.org/1.3.0-rc.4/$injector/modulerr?p0=angularytics&p…gleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.3.0-rc.4%2Fangular.js%3A4008%3A5) at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:80:12 at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:4047:15 at forEach (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:330:20) at loadModules (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:4008:5) at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:4025:40 at forEach (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:330:20) at loadModules (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:4008:5) at createInjector (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:3948:11) at doBootstrap (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:1480:20) at bootstrap (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.4/angular.js:1501:12) http://errors.angularjs.org/1.3.0-rc.4/$injector/modulerr?p0=docsApp&p1=Err…leapis.com%2Fajax%2Flibs%2Fangularjs%2F1.3.0-rc.4%2Fangular.js%3A1501%3A12)
Quick question, did you run bower install before running gulp docs?
Yes ma'am ... i just followed the read-me and did all the steps in order. I just did it all again and same issue. strange huh?
Just tried building the docs off of HEAD, and getting this:
[12:30:51] Using gulpfile ~/projects/material/docs/gulpfile.js
[12:30:51] Task 'docs' is not in your gulpfile
[12:30:51] Please check the documentation for proper gulpfile formatting
Also, had to install a bunch of dependencies individually before I even got this far (lodash, gulp-*, etc), but at this point I'm stuck.
Nevermind, didn't realize I needed to run this from the project's root dir. Generating the docs works, but as this issue says, the docs themselves are broken.
any update? docs still build but don't work...
On Thu, Oct 23, 2014 at 2:52 PM, Ray Vanderborght [email protected] wrote:
Nevermind, didn't realize I needed to run this from the project's root dir. Generating the docs works, but as this issue says, the docs themselves are broken.
— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/425#issuecomment-60298507.
Interesting..
When the [$injector:nomod] Module 'angularytics' is not available! error occurs, it usually means that you need to run:
bower update
The build process looks for /bower_components/angularytics/*.
for any one encountering this issue before doing any gulp things . do bower install in root (where bower.json exists) then go for gulp build and then gulp docs .
Got same issue. Fixed by running:
- bower update
- gulp build
- gulp docs
Thank you guys.
but there is no bower.json in the root!