Title: factory generator · Issue #2381 · angular-fullstack/generator-angular-fullstack · GitHub
Open Graph Title: factory generator · Issue #2381 · angular-fullstack/generator-angular-fullstack
X Title: factory generator · Issue #2381 · angular-fullstack/generator-angular-fullstack
Description: I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests. Item Version generator-angular-fullstack 4.1.0 Node 6.9.1 npm 3.10.8 Operating System Arch linux e...
Open Graph Description: I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests. Item Version generator-angular-fullstack 4.1.0 Node 6.9.1 ...
X Description: I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests. Item Version generator-angular-fullstack 4.1.0 Node 6.9.1 ...
Opengraph URL: https://github.com/angular-fullstack/generator-angular-fullstack/issues/2381
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"factory generator ","articleBody":" - [x] I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.\r\n\r\nItem | Version\r\n----- | -----\r\ngenerator-angular-fullstack | 4.1.0\r\nNode | 6.9.1\r\nnpm | 3.10.8\r\nOperating System | Arch linux\r\netc | etc\r\n\r\nItem | Answer\r\n----- | -----\r\nTranspiler | Babel \r\nMarkup | Pug\r\nCSS | SCSS \r\nRouter | ui-router\r\nClient Tests | Mocha\r\nDB | MongoDB \r\nAuth | Y \r\netc | etc\r\n\r\nWhen I make a new project `yo angular-fullstack factorytest`, and then try to make a factory it fails:\r\n\r\n```\r\nyo angular-fullstack:factory products\r\n(!) require('yeoman-generator').generators.Base is deprecated. Use require('yeoman-generator').Base directly\r\nevents.js:160\r\n throw er; // Unhandled 'error' event\r\n ^\r\n\r\nError: Cannot find module 'generator-ng-component/factory'\r\n at Function.Module._resolveFilename (module.js:469:15)\r\n at Function.resolve (internal/module.js:27:19)\r\n at child.compose (/usr/lib/node_modules/generator-angular-fullstack/generators/factory/index.js:7:94)\r\n at Object.\u003canonymous\u003e (/usr/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/lib/base.js:439:23)\r\n at /usr/lib/node_modules/generator-angular-fullstack/node_modules/run-async/index.js:25:25\r\n at /usr/lib/node_modules/generator-angular-fullstack/node_modules/run-async/index.js:24:19\r\n at /usr/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/lib/base.js:440:9\r\n at runCallback (timers.js:637:20)\r\n at tryOnImmediate (timers.js:610:5)\r\n at processImmediate [as _immediateCallback] (timers.js:582:5)\r\n```\r\n\r\n```\r\n$ npm list -g generator-angular-fullstack --depth=1\r\n/home/user/.nvm/versions/node/v6.9.1/lib\r\n`-- generator-angular-fullstack@4.1.0\r\n```\r\n\r\nall other generators work fine:\r\n```\r\n$yo angular-fullstack:route products\r\n? What module name would you like to use? factorytestApp.products\r\n? Where would you like to create this route? client/app/\r\n? What will the url of your route be? /products\r\n create client/app/products/products.routes.js\r\n create client/app/products/products.component.js\r\n create client/app/products/products.component.spec.js\r\n create client/app/products/products.pug\r\n create client/app/products/products.scss\r\n```\r\n```\r\n$yo angular-fullstack:service products\r\nIn the parent of this component, you should now import this component and add it as a dependency:\r\n\r\n import ProductsComponent from './products/products.component';\r\n ...\r\n export angular.module('myParentModule', [ProductsComponent]);\r\n? What module name would you like to use? factorytestApp.products\r\n? Where would you like to create this service? client/app/\r\n create client/app/products/products.service.js\r\n create client/app/products/products.service.spec.js\r\n```\r\n```\r\n$yo angular-fullstack:controller products\r\n? What module name would you like to use? factorytestApp.products\r\n? Where would you like to create this controller? client/app/\r\n create client/app/products/products.controller.js\r\n create client/app/products/products.controller.spec.js\r\n```\r\n","author":{"url":"https://github.com/joshuacox","@type":"Person","name":"joshuacox"},"datePublished":"2016-12-07T00:49:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/2381/generator-angular-fullstack/issues/2381"}
| 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:1ace9ed2-6529-8636-daaf-61b383af0d3b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB08:164E7F:6E86D5:95545A:696AB0B4 |
| html-safe-nonce | c9b1962c97d1b6f3ea8ecad330dfc2a370e1dbf6a1a96a19fd8bce486c4e34d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjA4OjE2NEU3Rjo2RTg2RDU6OTU1NDVBOjY5NkFCMEI0IiwidmlzaXRvcl9pZCI6IjM4NzE4Mjg3MjYwODQ0NDg0MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a417f1632beef894031df89a3d44c2b85d9f2654bbb996a4565f5115a0495604 |
| hovercard-subject-tag | issue:193928331 |
| 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-fullstack/generator-angular-fullstack/2381/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dcb8d87a07fb963484612fbf0703890fd38d87e44f70c8f25327ce3dabf0e9c8/angular-fullstack/generator-angular-fullstack/issues/2381 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dcb8d87a07fb963484612fbf0703890fd38d87e44f70c8f25327ce3dabf0e9c8/angular-fullstack/generator-angular-fullstack/issues/2381 |
| og:image:alt | I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests. Item Version generator-angular-fullstack 4.1.0 Node 6.9.1 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joshuacox |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| turbo-cache-control | no-preview |
| go-import | github.com/angular-fullstack/generator-angular-fullstack git https://github.com/angular-fullstack/generator-angular-fullstack.git |
| octolytics-dimension-user_id | 12663106 |
| octolytics-dimension-user_login | angular-fullstack |
| octolytics-dimension-repository_id | 13911118 |
| octolytics-dimension-repository_nwo | angular-fullstack/generator-angular-fullstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13911118 |
| octolytics-dimension-repository_network_root_nwo | angular-fullstack/generator-angular-fullstack |
| 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 | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width