Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在Jhipster实体生成器中添加枚举字段_Jhipster - Fatal编程技术网

无法在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 (

我正在尝试使用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 (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中删除了-\