提问者:小点点

JHipster蓝图生成器支持哪个版本的JHipster?


这是生成器存储库的链接:https://github.com/jhipster/generator-jhipster-blueprint

所以我正在尝试开发一个蓝图。我已经按照自述文件中的步骤进行了本地开发。当我尝试运行“jhipster-d--蓝图测试问题”时,这是我得到的消息:

DEBUG! Found blueprint generator-jhipster-TestQuestion and server with namespace jhipster-TestQuestion:server
WARNING! Error adding current blueprint templates as alternative for JHipster templates.
Error: The Namespace jhipster-TestQuestion:server may not be correct. Please check your configuration and ensure your blueprint folder start with "generator-". Detail: Error: Error parsing namespace jhipster-TestQuestion:server
    at module.exports.jhipsterTemplatePath (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster/generators/generator-base.js:201:13)
    at new JHipsterBaseBlueprintGenerator (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster/generators/generator-base-blueprint.js:68:49)
    at new JHipsterServerGenerator (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster/generators/server/index.js:65:5)
    at new module.exports (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster-Test/generators/server/index.js:7:9)
    at Environment.instantiate (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:801:23)
    at Environment.create (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:773:17)
    at JHipsterServerGenerator.composeWith (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:1326:42)
    at JHipsterServerGenerator._composeBlueprint (/usr/local/lib/node_modules/generator-jhipster/generators/generator-base-blueprint.js:516:43)
    at async JHipsterServerGenerator.composeWithBlueprints (/usr/local/lib/node_modules/generator-jhipster/generators/generator-base-blueprint.js:413:34)
    at async JHipsterServerGenerator._postConstruct (/usr/local/lib/node_modules/generator-jhipster/generators/server/index.js:96:7)
ERROR! jhContext.setupServerOptions is not a function
TypeError: jhContext.setupServerOptions is not a function
    at new module.exports (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster-Test/generators/server/index.js:18:19)
    at Environment.instantiate (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:801:23)
    at Environment.create (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:773:17)
    at JHipsterServerGenerator.composeWith (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:1326:42)
    at JHipsterServerGenerator._composeBlueprint (/usr/local/lib/node_modules/generator-jhipster/generators/generator-base-blueprint.js:516:43)
    at async JHipsterServerGenerator.composeWithBlueprints (/usr/local/lib/node_modules/generator-jhipster/generators/generator-base-blueprint.js:413:34)
    at async JHipsterServerGenerator._postConstruct (/usr/local/lib/node_modules/generator-jhipster/generators/server/index.js:96:7)
    at async JHipsterAppGenerator.compose (/usr/local/lib/node_modules/generator-jhipster/generators/app/index.js:431:11)
(node:183468) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./generators/" in the "exports" field module resolution of the package at /home/dev/Documents/JavaProjects/JHipster/generator-jhipster-Test/node_modules/generator-jhipster/package.json.
Update this package.json to use a subpath pattern like "./generators/*".
(Use `node --trace-deprecation ...` to show where the warning was created)

https://github.com/jhipster/generator-jhipster-blueprint/issues/225这个问题问了同样的问题,但是一年前。它说蓝图生成器当时不支持JHipster v7,这就是它不起作用的原因。

这就引出了我的问题:JHipster蓝图生成器支持哪个版本的JHipster?

我有JHipster 7.8.1,所以如果你也知道如何降级我的版本,我将不胜感激。


共1个答案

匿名用户

蓝图生成器是在JHipster v7.7.0中添加的,因此您可以将其与7.8.1一起使用。您可以查看以下最近发布的基于7.8.1的蓝图。

  • https://github.com/jhipster/generator-jhipster-native
  • https://github.com/jhipster/generator-jhipster-ionic