gpt4 book ai didi

jhipster registerModule 获取错误 "Could not add jhipster module configuration"

转载 作者:行者123 更新时间:2023-12-04 15:59:05 25 4
gpt4 key购买 nike

我是 jhipster/yeoman 的新手,我已经利用 generator-jhipster-module 生成了我的 jhipster-module。我按照文档中的所有步骤 (https://www.jhipster.tech/modules/creating-a-module/) 创建了 post entity creation hook。经过一些配置后,我需要执行:

yo jhipster-my-module

结果是安装了模块但是有这个错误:

Could not add jhipster module configuration

运行后,进入实体子生成器jhipster生成的应用

jhipster entity EntityName

jhipster-my-module 没有开始进入后期实体创建阶段。

最佳答案

调试 generator-jhipster/generators/generator-base.js 错误是 modules.push is not a function

这发生在 generator-jhipster 版本 5.0.0 上,而不是使用它工作的 4.14.4。

如果您不需要使用 generator-jhipster 5.0.0 版本开发 jhipster-module,您可以使用 4.14.4 版本,例如

...
"dependencies": {
"generator-jhipster": "^4.14.4",
...

但在5.0.0版本上仍然是开放点。

关于jhipster registerModule 获取错误 "Could not add jhipster module configuration",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50970940/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com