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

I cant run the generator in Jhipster V7.x

Open smunir opened this issue 3 years ago • 12 comments

I am getting 'This generator (jhipster-entity-audit:app) requires yeoman-environment at least 3.0.0, current version is 2.10.3, try reinstalling latest version of 'yo' or use '--ignore-version-check' option'

yo global 3.1.1 is using yeoman-environment:2.10.3 and I am unable to use the generator. Please check

Screen Shot 2021-04-08 at 6 40 57 PM

smunir avatar Apr 08 '21 13:04 smunir

Looks like similar issue has been reported for other generators also. Please look at https://github.com/merlinofcha0s/generator-jhipster-flutter/issues/51 and https://github.com/yeoman/generator/issues/1279 As suggested in https://github.com/yeoman/generator/issues/1279#issuecomment-792669839 I am able to run the generator but now it's giving error this.registerPrettierTransform is not a function

smunir avatar Apr 08 '21 14:04 smunir

this module is not working with Jhipster V7.x

galkzaz avatar May 07 '21 11:05 galkzaz

@smunir did you find a solution for this error ? this.registerPrettierTransform is not a function

wael-sakhri avatar May 27 '21 20:05 wael-sakhri

please find the solution asap, not able to add audit extension to all entities with this command, using jhipster version 6.10.5... The motive is to make every class extend the abstract audit interface which adds extra audit fields like created, modified, etc, and then get the liquibase changelog files updated respectively. Please reply asap.

Lucifer3377 avatar May 29 '21 19:05 Lucifer3377

Any idea when if and when this issue will be fixed? Any suggested known workarounds? New to jhipster so any guidance will be much appreciated. Can I downgrade jhipster manually in my existing app to get this to work?

pojomojo1982 avatar Jun 15 '21 20:06 pojomojo1982

this module can not suport jhipster v7.x. when i install jhipster 6.10.5,then i install this module but still this.registerPrettierTransform is not a function

  1. go to the npm gobal node_modules/generator-jhipster-entity-audit, if you install by -g
  2. you can found module's node_modules default install jhisper@latest , then modify the package.json "generator-jhipster": ">=6.0.0" to "generator-jhipster": "6.10.5"
  3. remove this module’s node_modules, then run npm i
  4. now you can use this module on jhipster v6.10.5

muyuanqiang7 avatar Jul 17 '21 01:07 muyuanqiang7

any update?

edy-ap avatar Aug 05 '21 22:08 edy-ap

I checked out and used local version of 3.4.0, this worked for me? Have you tried this?

smunir avatar Aug 05 '21 23:08 smunir

I checked out and used local version of 3.4.0, this worked for me? Have you tried this?

can you exmplain me, how use v3.4.0, please?

edy-ap avatar Aug 05 '21 23:08 edy-ap

I checked out and used local version of 3.4.0, this worked for me? Have you tried this?

can you exmplain me, how use v3.4.0, please?

Using local version of blueprint is a general thing. Luckily these instructions are mentioned in many blueprints. Checkout code of generator-jhipster-entity-audit and follow instructions from https://github.com/elhoutico/jhipster-primeng-blueprint#running-local-blueprint-version-for-development.

smunir avatar Aug 05 '21 23:08 smunir

Thanks for you help, i will try

edy-ap avatar Aug 05 '21 23:08 edy-ap

Thanks for you help, i will try

hi, do you fixed this issue?

naderwaled avatar Sep 14 '21 10:09 naderwaled

I found out Jhipster by default generates AuditingEntityListener.java and DatabaseConfiguration.java contains the annotation for enabling JPA auditing. I think this generator is not needed any longer.

The uer entity is already extended with AbstractAuditingEntity by default, So for the other entities we could do the same I guess, that should be it?

JeroenAdam avatar Aug 25 '22 12:08 JeroenAdam

This is going to be tackled here: https://github.com/jhipster/generator-jhipster/issues/18471

JeroenAdam avatar Aug 25 '22 13:08 JeroenAdam

Closing, since we migrate to a new blueprint version. If you found any issue with latest version, please open a new issue.

DanielFran avatar Aug 27 '22 15:08 DanielFran