material icon indicating copy to clipboard operation
material copied to clipboard

gulp command to create documentation runs but still have errors viewing the docs...

Open jeffthompson1971 opened this issue 12 years ago • 10 comments

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)

jeffthompson1971 avatar Oct 14 '14 23:10 jeffthompson1971

Quick question, did you run bower install before running gulp docs?

marcysutton avatar Oct 14 '14 23:10 marcysutton

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?

jeffthompson1971 avatar Oct 16 '14 01:10 jeffthompson1971

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.

depsypher avatar Oct 23 '14 19:10 depsypher

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.

depsypher avatar Oct 23 '14 19:10 depsypher

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.

jeffthompson1971 avatar Oct 28 '14 15:10 jeffthompson1971

Interesting..

ajoslin avatar Oct 28 '14 15:10 ajoslin

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/*.

ThomasBurleson avatar Nov 14 '14 00:11 ThomasBurleson

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 .

hasangilak avatar Jan 13 '15 09:01 hasangilak

Got same issue. Fixed by running:

  1. bower update
  2. gulp build
  3. gulp docs

Thank you guys.

kuncevic avatar Mar 15 '15 01:03 kuncevic

but there is no bower.json in the root!

alirezamirian avatar Apr 21 '15 23:04 alirezamirian