generator-jhipster-module
generator-jhipster-module copied to clipboard
Errors when using JHipster >= 7.0
It seems that there are some compatibility issues when using JHipster 7.0 or higher. In my case, 7.0.1 was used.
Reproduction steps:
- Generate a new JHipster module via
yo jhipster-module
- Run the newly created generator
Errors:
-
this.getAllJhipsterConfig
is not a function. Possible solution: Usethis.getJhipsterConfig()
instead (apparently, the former was removed: https://github.com/jhipster/generator-jhipster/issues/12023) -
this.getAngularAppName
is not a function. Possible solution: Usethis.getFrontendAppName()
instead -
this.installDependencies
is not a function. Possible solution: I have not found any so far. I have seen that the function is marked as deprecated (https://github.com/yeoman/generator/blob/357932222b7806e6d3e60c44d5cbdd9b2da74dcf/lib/actions/install.js#L111) but that does not explain why it would not be defined...
Has anyone experienced similar problems? I am happy to create a PR to fix these, but I would need some help on the last of the three findings because I have not found a solution for that so far.
Thank you!
@glutengo : there is no release of this project since 1 year, so no release which is compatible with JHipster v7 cc @avdev4j
Correct, we need to release it as soon as possible :D.
For the moment @glutengo you can clone the project and install it locally by typing npm link
in the generator-jhipster-module
folder, then call it as you use to do.
Let me know if it works.
@avdev4j thank you. I have done that and applied the two changes which I suggested as possible solutions in my initial description of this issue. I have however not found an alternative to the problematic call to this.installDependencies
in the install
phase. (see https://github.com/jhipster/generator-jhipster-module/blob/50a4aef43b6477d98fc1ebd7c778e7307a9cca4e/generators/app/templates/generators/app/index.js.ejs#L143) Do you (or anybody else) have any idea why this fails and what could be a possible workaround?