Closed amatosg closed 4 years ago
Have you many-to-many relation in your jdl ?
yes, only one.
We have an issue with jdl and many-to-many (https://github.com/jhipster/jhipster-dotnetcore/issues/153)
But you can generate this entity with jhipster entity YourEntity
it only generated the json entities in the .jhipster
folder though.
can you show me logs ?
this is the full log then executing the import command: https://pastebin.com/WDSaUYNV
I'm going to work on it. A workaround was to remove many-to-many in jdl and generate it manually with jhipster entity command
@amatosg Can you try with #224 ?
did you lease it? How can I test it?
you can clone my fork(master branch) and use npm link to run local version. This step is describe in the readme (Running local Blueprint version for development)
@nicolas63 I was also experiencing this error. I tested this and can confirm that this error does not occur with the fix that you provided (#224). I experienced a little issue with multiple many-to-many relationships defined in jdl and opened issue #228 - basically all JoinedEntity classes are generated with the exact same code
Thank you for your feedback. I have see #228 but I haven't looked at the problem yet.
Overview of the issue
When running
jhipster import-jdl ../FacturApp/facturapp.jh
I'm gettingCannot read property 'otherEntityNamePascalized' of undefined
.Full error log:
No entity was generated.
Motivation for or Use Case
I'm unable to import a JDL file.
Reproduce the error
Related issues
None.
Suggest a Fix
Not sure how to fix this. If I'm given guides, I could give it a try.
INFO! Using JHipster version installed globally INFO! No custom sharedOptions found within blueprint: generator-jhipster-dotnetcore at /usr/local/lib/node_modules/generator-jhipster-dotnetcore INFO! No custom commands found within blueprint: generator-jhipster-dotnetcore at /usr/local/lib/node_modules/generator-jhipster-dotnetcore INFO! Executing jhipster:info INFO! Options: from-cli: true Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
I don't know why it states 6.8.0 when I have 6.9.0 already
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryEnvironment and Tools
openjdk version "11.0.5" 2019-10-15 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10) Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.17.0, JRE 11 Mac OS X amd64-64-Bit Compressed References 20191016_371 (JIT enabled, AOT enabled) OpenJ9 - 77c1cf708 OMR - 20db4fbc JCL - 2a7af5674b based on jdk-11.0.5+10)
git version 2.20.1 (Apple Git-117)
node: v11.15.0
npm: 6.14.4
yeoman: 3.1.1
Docker version 18.06.1-ce, build e68fc7a
docker-compose version 1.22.0, build f46880f
INFO! Congratulations, JHipster execution is complete!
Love JHipster? Please consider supporting our collective: 👉 https://opencollective.com/generator-jhipster/donate