无法在Jhipster实体生成器中添加枚举字段
我正在尝试使用Jhipster和以下命令创建一个实体无法在Jhipster实体生成器中添加枚举字段,jhipster,Jhipster,我正在尝试使用Jhipster和以下命令创建一个实体 (My-base-project-directory)$jhipster entity Author 此实体中有一个国籍枚举。当我想添加字段时,Jhipster会问以下问题: Do you want to add a field to your entity? Y What is the name of your field? nationality What is the type of your field? Enumeration (
(My-base-project-directory)$jhipster entity Author
此实体中有一个国籍枚举。当我想添加字段时,Jhipster会问以下问题:
Do you want to add a field to your entity? Y
What is the name of your field? nationality
What is the type of your field? Enumeration (Java enum type)
What is the class name of your enumeration?
当我想输入“National”或“nationalityEnum”作为类名时,我得到以下错误:
TypeError: cannot read property 'includes' of undefined
我正在使用Jhipster自动生成的单片项目,使用java和react,并在项目的根目录中运行命令。我的Jhipster版本是7.0.1。
如果有人能帮忙,我将不胜感激。这是一个众所周知的问题:我想知道为什么我在谷歌搜索中从未遇到过这个链接。好吧,至少现在我明白了为什么同样的问题被作者在Stackoverflow中删除了-\