JHipster Entity sub generator - no properties in common with the "Component" type,

I am having problems using the "entity" subgenerator when trying to update an existing entity.

When starting the generator at the end of the process, the following command is executed:

wash yarn && & yarn run webpack: build: main

During this process, I get the following errors:

ERROR in [at-loader] dummy / path / car-delete-dialog.component.ts: 58: 23 TS2559: Type 'typeof CarDeleteDialogComponent' has no properties in common with type 'Component'.

ERROR in [at-loader] ./ dummy / path / car-dialog.component.ts: 147: 27 TS2559: The 'typeof CarDialogComponent' has no properties in common with the 'Component' type.

ERROR in [at-loader] ./ dummy / path / car-dialog.component.ts: 150: 27 TS2559: The 'typeof CarDialogComponent' has no properties in common with the type 'Component'.

What can be fixed by changing:

his.modalRef = this.carPopupService
                .open(CarDialogComponent, params['id']);

      

in

this.modalRef = this.carPopupService
                .open(CarDialogComponent as Component, params['id']);

      

These errors only apply to the object that was updated.

I understand why this needs to be done, but I'm not sure if this is what the generator should work on, etc.

The JHipster version is 4.6.2 (I recently updated it) and I haven't used the extra generator before I originally imported from JDL studio.

Thanks in advance for any help you can give.

+1


source to share


1 answer


This has been resolved now.

I had a mismatch between the version the project was updated to (v4.6.2) and the JHipster global generator (v4.6.1).



Updating the JHipster Generator to 4.0.6 fixes the issues.

0


source







All Articles