I've got the same error, and a solution, at lest for my case ;)
$ yo jhipster:import-jdl ./entities-jdl.jh
The jdl is being parsed.
Error jhipster:import-jdl ./entities-jdl.jh
ERROR! Error while parsing entities from JDL
[object Object]
- Add only few entities or relationships in the file (entities-jdl.jh)
- Run again yo jhipster:import-jdl ./entities-jdl.jh
- Repeat until you find the error
- Analyse the syntax of the lasts entities or relationship you added
In my case the JDL error was in this entity:
entity Serie {
tipus TipusSerie required maxlength(20),
nom String required,
prefixe String required
}
enum TipusSerie {
NORMAL, XEC_ESCOLETA
}
TipusSerie is an enum and cannot be validated with maxlength(20), so the correct JDL is:
entity Serie {
tipus TipusSerie required,
nom String required,
prefixe String required
}
enum TipusSerie {
NORMAL, XEC_ESCOLETA
}
I suposse that jhipster hasn't an error messages for that kind of error and shows a generic error message.