执行 jhipster import-jdl xxx.jh --debug 报以下错误
Using JHipster version installed globally
Debug logging is on
DEBUG! Executing CLI only script
DEBUG! cmd: import-jdl from ./import-jdl
DEBUG! args: jhipster-meeting.jh, commands: Object, options: Object, _execs: Object, _allowUnknownOption: true, _args: Object, _name: import-jdl, _noHelp: false, parent: Object, _description: Create entities from the JDL file passed in argument, _argsDescription: undefined, _events: Object, _eventsCount: 1
Executing import-jdl jhipster-meeting.jh
Options: debug: true, from-cli: true
DEBUG! JDLProcessor started with jdlFiles: jhipster-meeting.jh and options: debug: true, from-cli: true
The JDL is being parsed.
DEBUG! Error:
Error: The JDL object and the database type are both mandatory.
ERROR! Error while parsing applications and entities from the JDL Error: The JDL object and the database type are both mandatory.
解决办法:项目中缺少生成项目的 .yo-rc.json 文件,将其加入到项目根目录即可
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于