Title: ng g module module-name TypeError · Issue #2893 · angular/angular-cli · GitHub
Open Graph Title: ng g module module-name TypeError · Issue #2893 · angular/angular-cli
X Title: ng g module module-name TypeError · Issue #2893 · angular/angular-cli
Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Mac OSX Sierra Versions. Please run ng --version. If there's nothing outputted, please run in a Termina...
Open Graph Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Mac OSX Sierra Versions. Please run ng --version. If there's no...
X Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Mac OSX Sierra Versions. Please run ng --version. If there'...
Opengraph URL: https://github.com/angular/angular-cli/issues/2893
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng g module module-name TypeError","articleBody":"\u003e ## Please provide us with the following information:\n### OS?\n\n\u003e Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\n\u003e Mac OSX Sierra\n### Versions.\n\n\u003e Please run `ng --version`. If there's nothing outputted, please run in a Terminal: `node --version` and paste the result here:\n\u003e \n\u003e ``` bash\n\u003e angular-cli: 1.0.0-beta.11-webpack.8\n\u003e node: 6.6.0\n\u003e os: darwin x64\n\u003e ```\n### Repro steps.\n\n\u003e Was this an app that wasn't created using the CLI? What change did you do on your code? etc.\n\u003e No, the app has been freshly created from scratch with CLI, just tried to add a new module.\n### The log given by the failure.\n\n\u003e Normally this include a stack trace and some more information.\n\u003e \n\u003e ``` bash\n\u003e blackat:ng-navbar eugenio$ ng g module navbar\n\u003e Could not start watchman; falling back to NodeWatcher for file system events.\n\u003e Visit http://ember-cli.com/user-guide/#watchman for more info.\n\u003e installing module\n\u003e create src/app/navbar/navbar.module.ts\n\u003e installing component\n\u003e create src/app/navbar/navbar.component.css\n\u003e create src/app/navbar/navbar.component.html\n\u003e create src/app/navbar/navbar.component.spec.ts\n\u003e create src/app/navbar/navbar.component.ts\n\u003e astUtils.addComponentToModule is not a function\n\u003e TypeError: astUtils.addComponentToModule is not a function\n\u003e at Class.afterInstall (/Users/eugenio/Projects/Github/ng-navbar/node_modules/angular-cli/addon/ng2/blueprints/component/index.js:125:18)\n\u003e at tryCatch (/Users/eugenio/Projects/Github/ng-navbar/node_modules/rsvp/dist/lib/rsvp/-internal.js:215:12)\n\u003e at invokeCallback (/Users/eugenio/Projects/Github/ng-navbar/node_modules/rsvp/dist/lib/rsvp/-internal.js:230:13)\n\u003e at publish (/Users/eugenio/Projects/Github/ng-navbar/node_modules/rsvp/dist/lib/rsvp/-internal.js:198:7)\n\u003e at flush (/Users/eugenio/Projects/Github/ng-navbar/node_modules/rsvp/dist/lib/rsvp/asap.js:85:5)\n\u003e at _combinedTickCallback (internal/process/next_tick.js:67:7)\n\u003e at process._tickCallback (internal/process/next_tick.js:98:9)\n\u003e ```\n\nThanks a lot for your help 😉 \n","author":{"url":"https://github.com/blackat","@type":"Person","name":"blackat"},"datePublished":"2016-10-26T04:58:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2893/angular-cli/issues/2893"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:03919d88-53da-0212-a56f-1f6870b93901 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A562:1D9B97:B767CA6:EC8039D:69767816 |
| html-safe-nonce | 2752c80eb4c65ebf9b51a1dae8517d81228c8fb7a3cec2bee0624307f102fb35 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTYyOjFEOUI5NzpCNzY3Q0E2OkVDODAzOUQ6Njk3Njc4MTYiLCJ2aXNpdG9yX2lkIjoiNDEzNTI2MDY4MjYyNDMzMzg0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d9304d6e7d820c58eaef77357d811a63f6b0b0c29bfc0a659d4c36dbc1934870 |
| hovercard-subject-tag | issue:185297401 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/2893/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff4ac2052d2f3d7505805cfdb0d0e411f9e12305129a3a8243b95779fd99c3ed/angular/angular-cli/issues/2893 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff4ac2052d2f3d7505805cfdb0d0e411f9e12305129a3a8243b95779fd99c3ed/angular/angular-cli/issues/2893 |
| og:image:alt | Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Mac OSX Sierra Versions. Please run ng --version. If there's no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blackat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width