[英]Jhipster jdl error - `Valid source and destination entities are required`
I am trying to import my jdl file into my jhipster project but I am getting the following error: 我试图将我的jdl文件导入到我的jhipster项目中,但出现以下错误:
$ jhipster import-jdl ./Assets/jhipster-jdl.jh --serverOnly
Using JHipster version installed globally
Executing jhipster:import-jdl ./Assets/jhipster-jdl.jh
Options: serverOnly: true, server-only: true
The JDL is being parsed.
Error: Valid source and destination entities are required.
ERROR! ERROR! Error while parsing applications and entities from the JDL Error: Valid source and destination entities are required.
Error: ERROR! Error while parsing applications and entities from the JDL Error: Valid source and destination entities are required.
at Environment.error (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:157:40)
at module.exports.error (/usr/local/lib/node_modules/generator-jhipster/generators/generator-base.js:1978:18)
at module.exports.importJDL (/usr/local/lib/node_modules/generator-jhipster/generators/import-jdl/index.js:115:14)
at new ImporterGenerator (/usr/local/lib/node_modules/generator-jhipster/generators/import-jdl/index.js:80:38)
at new module.exports (/usr/local/lib/node_modules/generator-jhipster/generators/import-jdl/index.js:122:9)
at Environment.instantiate (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:408:12)
at Environment.create (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:386:17)
at Environment.run (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:443:28)
at runYoCommand (/usr/local/lib/node_modules/generator-jhipster/cli/cli.js:63:13)
at Command.command.allowUnknownOption.description.action (/usr/local/lib/node_modules/generator-jhipster/cli/cli.js:83:13)
It's saying that I don't have a valid jdl file to be imported. 就是说我没有要导入的有效jdl文件。 Looking at my jdl, I can't find any syntactical errors and the error message does not give me a line.
看着我的jdl,我找不到任何语法错误,并且错误消息没有给我一行。 Any ideas?
有任何想法吗?
This error message is returned when one of of the entities in relationships is invalid . 关系中的实体之一无效时,将返回此错误消息。 Check the
relationship
sections of your JDL, make sure the entities on both sides of the relationship exist and are spelled correctly. 检查JDL的
relationship
部分,确保关系两侧的实体存在并且拼写正确。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.