You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error "Cannot read properties of undefined (reading 'length')" occurs when regenerating an entity using jhipster-dotnetcore:entity only for entities that have relationships. This happens after importing a JDL file and attempting to regenerate a specific entity with the --single-entity flag.
Motivation for or Use Case
I need to regenerate an entity in my JHipster .NET Core project while maintaining existing entities and introducing modifications from a JDL file.
Reproduce the error
Import a JDL file using: jhipster-dotnetcore import-jdl jdl.jh --json-only
Run the entity regeneration command for a specific entity: jhipster-dotnetcore entity EntityName --single-entity
Expected behavior
The entity should be regenerated using the information from the JDL file, while preserving existing entities and configurations.
Overview of the issue
The error "Cannot read properties of undefined (reading 'length')" occurs when regenerating an entity using jhipster-dotnetcore:entity only for entities that have relationships. This happens after importing a JDL file and attempting to regenerate a specific entity with the --single-entity flag.
Motivation for or Use Case
I need to regenerate an entity in my JHipster .NET Core project while maintaining existing entities and introducing modifications from a JDL file.
Reproduce the error
jhipster-dotnetcore import-jdl jdl.jh --json-only
jhipster-dotnetcore entity EntityName --single-entity
Expected behavior
The entity should be regenerated using the information from the JDL file, while preserving existing entities and configurations.
JHipster Version(s)
"generator-jhipster-dotnetcore": "^4.1.0"
Mandatory Checkbox
The text was updated successfully, but these errors were encountered: