Closed aricooperman closed 7 years ago
I think the problem comes from: "fieldName": "type" in NetworkLeadContact.json
With Angular2, there can be some entities name which need to be excluded. Only the community can report it when using JHipster4.
Thanks for using properly the template and yo jhipster:info
I also added typescript reserved words
jhipster/jhipster-core#104
Overview of the issue
Import jh entity file, regenerate project and get the following errors:
` ERROR in [at-loader] src/main/webapp/app/entities/network-lead-contact/network-lead-contact-dialog.component.ts:48:28 Argument of type '(res: Response) => void' is not assignable to parameter of type '(value: NetworkLeadContact) => void'. Types of parameters 'res' and 'value' are incompatible. Type 'NetworkLeadContact' is not assignable to type 'Response'. Types of property 'type' are incompatible. Type 'ContactType' is not assignable to type 'ResponseType'.
ERROR in [at-loader] src/main/webapp/app/entities/network-lead-contact/network-lead-contact-dialog.component.ts:51:28 Argument of type '(res: Response) => void' is not assignable to parameter of type '(value: NetworkLeadContact) => void'. Types of parameters 'res' and 'value' are incompatible. `
Motivation for or Use Case
Can't build project with designed entities
Reproduce the error
Use config below and generate/run webpack build
Related issues
4921
Suggest a Fix
Unsure
JHipster Version(s)
4.0.0
JHipster configuration
Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folderEntity configuration(s)
entityName.json
files generated in the.jhipster
directoryCompany.json
CompanyNote.json
Employment.json
NetworkLead.json
NetworkLeadContact.json
Person.json
Browsers and Operating System
java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)
git version 2.10.1 (Apple Git-78)
node: v6.9.4
npm: 4.1.1
bower: 1.8.0
gulp: [11:07:31] CLI version 1.2.2
yeoman: 1.8.5
yarn: 0.19.1
Docker version 1.13.0, build 49bf474
docker-compose version 1.10.0, build 4bd6f1a