GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — factory generator · Issue #2381 · angular-fullstack/generator-angular-fullstack

This repository was archived by the owner on Jul 29, 2026. It is now read-only.
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

factory generator  #2381

Copy link
Copy link
Closed
Closed
factory generator #2381
Copy link
Labels
buginvestigate

Description

@joshuacox
joshuacox
opened on Dec 7, 2016
Issue body actions
  • 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
etc etc
Item Answer
Transpiler Babel
Markup Pug
CSS SCSS
Router ui-router
Client Tests Mocha
DB MongoDB
Auth Y
etc etc

When I make a new project yo angular-fullstack factorytest, and then try to make a factory it fails:

yo angular-fullstack:factory products
(!) require('yeoman-generator').generators.Base is deprecated. Use require('yeoman-generator').Base directly
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Cannot find module 'generator-ng-component/factory'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.resolve (internal/module.js:27:19)
    at child.compose (/usr/lib/node_modules/generator-angular-fullstack/generators/factory/index.js:7:94)
    at Object.<anonymous> (/usr/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/lib/base.js:439:23)
    at /usr/lib/node_modules/generator-angular-fullstack/node_modules/run-async/index.js:25:25
    at /usr/lib/node_modules/generator-angular-fullstack/node_modules/run-async/index.js:24:19
    at /usr/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/lib/base.js:440:9
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
$ npm list -g generator-angular-fullstack --depth=1
/home/user/.nvm/versions/node/v6.9.1/lib
`-- [email protected]

all other generators work fine:

$yo angular-fullstack:route products
? What module name would you like to use? factorytestApp.products
? Where would you like to create this route? client/app/
? What will the url of your route be? /products
   create client/app/products/products.routes.js
   create client/app/products/products.component.js
   create client/app/products/products.component.spec.js
   create client/app/products/products.pug
   create client/app/products/products.scss
$yo angular-fullstack:service products
In the parent of this component, you should now import this component and add it as a dependency:

    import ProductsComponent from './products/products.component';
    ...
    export angular.module('myParentModule', [ProductsComponent]);
? What module name would you like to use? factorytestApp.products
? Where would you like to create this service? client/app/
   create client/app/products/products.service.js
   create client/app/products/products.service.spec.js
$yo angular-fullstack:controller products
? What module name would you like to use? factorytestApp.products
? Where would you like to create this controller? client/app/
   create client/app/products/products.controller.js
   create client/app/products/products.controller.spec.js

Activity

  1. Awk34 commented on Dec 7, 2016

    @Awk34
    Awk34
    on Dec 7, 2016
    Collaborator
    More actions

    Hmm. List it out with a depth of 2. The latest version of the subgenerator is 1.0.5. Make sure you have that. If so, I'll have to investigate further.... Thanks for the report.

  2. Awk34
    added
    investigate
    bug
    on Dec 7, 2016
  3. Awk34 commented on Dec 7, 2016

    @Awk34
    Awk34
    on Dec 7, 2016
    Collaborator
    More actions

    Actually, I just checked. This is a confirmed bug.

  4. joshuacox commented on Dec 7, 2016

    @joshuacox
    joshuacox
    on Dec 7, 2016
    Author
    More actions

    depth=2 did not reveal more on generator-angular-fullstack

    $ npm list -g generator-angular-fullstack --depth=2
    ~/.nvm/versions/node/v6.9.1/lib
    `-- [email protected]
    

    and by subgenerator did you mean ng-component?

    $ npm list -g generator-ng-component --depth=2
    ~/.nvm/versions/node/v6.9.1/lib
    +-- [email protected]
    | `-- [email protected]
    `-- [email protected]
    

    let me know if I can provide more info.

  5. Awk34 commented on Dec 7, 2016

    @Awk34
    Awk34
    on Dec 7, 2016
    Collaborator
    More actions

    Thanks. This is a bug with this generator, as I found out after I investigated.

  6. Awk34
    closed this as completedin b09cfe5on Dec 8, 2016
  7. CleverCodingLab commented on Oct 13, 2018

    @CleverCodingLab
    CleverCodingLab
    on Oct 13, 2018
    More actions

    use node v8.11.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginvestigate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.