Angular: NG8107 warning when compiling frontend in list and detail view with referenced other entities #19373
Closed
1 task done
Labels
area: bug 🐛
$$ bug-bounty $$
https://www.jhipster.tech/bug-bounties/
theme: angular
$100
https://www.jhipster.tech/bug-bounties/
Milestone
Overview of the issue
In the following line, we do produce a ? character right before the element accessor:
generator-jhipster/generators/entity-client/templates/angular/src/main/webapp/app/entities/list/entity-management.component.html.ejs
Line 149 in 1668772
This produces such warnings during frontend build:
Another place where the same thing is done is this:
generator-jhipster/generators/entity-client/templates/angular/src/main/webapp/app/entities/detail/entity-management-detail.component.html.ejs
Line 91 in 1668772
Producing such a warning
Motivation for or Use Case
Shouldn't throw such warning during build.
Reproduce the error
See references above. We should put the question mark only for nullable fields... but interestingly, this field seems to be nullable here and the compiler seems to be not able to recognize that...
Related issues
Suggest a Fix
We should put the question mark only for nullable fields...
JHipster Version(s)
7.9.2
JHipster configuration
Leaving it out. I already put a reference to the code lines causing the issue.
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
The text was updated successfully, but these errors were encountered: