generator-jhipster-entity-audit icon indicating copy to clipboard operation
generator-jhipster-entity-audit copied to clipboard

Not compatible with angular 9+

Open edy-ap opened this issue 4 years ago • 9 comments

This likely means that the library (ng-diff-match-patch) which declares DiffMatchPatchModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

edy-ap avatar Apr 17 '20 22:04 edy-ap

I have the same error. Iuk.

bukohub avatar Jun 26 '20 19:06 bukohub

Men, I found the solution this problema. You need update ng-diff-match-patch to last version.

bukohub avatar Jun 29 '20 23:06 bukohub

Would you be willing to a PR?

On Tue, 30 Jun 2020, 1:52 am bukohub, [email protected] wrote:

Men, I found the solution this problema. You need update ng-diff-match-patch to last version.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hipster-labs/generator-jhipster-entity-audit/issues/148#issuecomment-651428658, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIOKF5BTJZZYPZH7G2A6ZDRZESNNANCNFSM4MLCQU5A .

deepu105 avatar Jun 30 '20 08:06 deepu105

There's already a PR for that (https://github.com/hipster-labs/generator-jhipster-entity-audit/pull/147), but I'm not in favor of merging it until we know where this new version of ng-diff-match-patch comes from (https://github.com/elliotforbes/ng-diff-match-patch/issues/39)

murdos avatar Jun 30 '20 11:06 murdos

Oh I didn't realize that we are changing lib. Ok I'll leave it to you then

On Tue, 30 Jun 2020, 1:02 pm Aurélien Mino, [email protected] wrote:

There's already a PR for that (#147 https://github.com/hipster-labs/generator-jhipster-entity-audit/pull/147), but I'm not in favor of merging it until we know where this new version of ng-diff-match-patch comes from (elliotforbes/ng-diff-match-patch#39 https://github.com/elliotforbes/ng-diff-match-patch/issues/39)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hipster-labs/generator-jhipster-entity-audit/issues/148#issuecomment-651722534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIOKF4UBCQP6DYGUVPNJCDRZHA5XANCNFSM4MLCQU5A .

deepu105 avatar Jul 01 '20 07:07 deepu105

@murdos, @deepu105. Actually, there are some problems with generator-jhipster-entity-audit in angular 9.

  1. ng-diff-match-patch, (I solved that solution with update version, but @murdos has reason).
  2. admin-routing.module.ts, generates two commas in his route.
  3. entity-audit-modal.component.html, generates a <pre class="code" id="resultChanges" diff [left]="left" [right]="right">, that generates issue, in tags left and right (angular version problem).

In all the time using entity-audit, this was my problems.

bukohub avatar Jul 10 '20 05:07 bukohub

This generator is incredible (really). I would like contribute it, but I don't know how to do a PR.

bukohub avatar Jul 10 '20 05:07 bukohub

@bukohub how did you resolve no 3?

@murdos, @deepu105. Actually, there are some problems with generator-jhipster-entity-audit in angular 9.

1. ng-diff-match-patch, (I solved that solution with update version, but @murdos  has reason).

2. admin-routing.module.ts, generates two commas in his route.

3. entity-audit-modal.component.html, generates a  <pre class="code" id="resultChanges" diff [left]="left" [right]="right">, that generates issue, in tags left and right (angular version problem).

In all the time using entity-audit, this was my problems.

vaibhavg12 avatar Sep 02 '20 10:09 vaibhavg12

@bukohub how did you resolve no 3?

@murdos, @deepu105. Actually, there are some problems with generator-jhipster-entity-audit in angular 9.

1. ng-diff-match-patch, (I solved that solution with update version, but @murdos  has reason).

2. admin-routing.module.ts, generates two commas in his route.

3. entity-audit-modal.component.html, generates a  <pre class="code" id="resultChanges" diff [left]="left" [right]="right">, that generates issue, in tags left and right (angular version problem).

In all the time using entity-audit, this was my problems.

Probably there are much better ways, I changed the entity-audit-modal.component.ts to make left and right as regular strings:


export class EntityAuditModalComponent {
  action?: string;
  left: string;
  right: string;

  constructor(private service: EntityAuditService, public activeModal: NgbActiveModal) {this.left=""; this.right="";}

dhavalmshah avatar Oct 27 '20 15:10 dhavalmshah