Closed sdebnath closed 3 years ago
I am hitting this same problem after upgrading to generator-jhipster 7.0.0. Please advise as to host to resolve this issue or if a fix in in progress.
Yeah same here! Seeing the same issue with Kotlin generator
I guess it's due to mix of node_modules
generated with npm 7
vs npm 6
.
I have the same issue.
I have created two new JHipster v7.0.0 projects: one Gateway and and one Microservice.
If I run jhipster jdl ~/Downloads/jhipster-jdl.jdl
in the Microservice works fine, but when I run it in the Gateway I get the same error.
Then out of curiosity, I have created a new Monolitich project with JHipster v7.0.0 and tried to run the same command but receive the same error.
I guess it's due to mix of
node_modules
generated withnpm 7
vsnpm 6
.
Yes that's it.
Workarounds:
npm install -g npm@latest
or downgrade npm version at pom.xml.rm -rf package-lock.json node_modules
npm install
@mshima tried that, didnt help
node --version
v14.16.0
➜ test-kotlin2 git:(master) ✗ npm --version
7.7.6
➜ test-kotlin2 git:(master) ✗
running jhipster ci-cd
gives the same problem
Same error here, but it happens when upgrading gateway app from 6.10.5 to 7.0.0 (jhipster upgrade
). Specifically when generating 7.0.0 app version.
Deleted node_modules
and package-lock.json
, but still no luck. Seems that @mshima workaround not always works.
node --version
v15.11.0
npm --version
7.7.6
This is an upstream bug cause by https://github.com/ajv-validator/ajv-formats/pull/15.
You can try the following workarounds:
jhipster upgrade
uses legacy-peer-deps for better compatibility, so it's broken)This has worked for me
npm install --save-dev ajv@^7
@radzionkow : sorry, I'm out of subject here but just becareful with the upgrade of the gateway as we needed to change the architecture. Old gateway used Zuul and Ribbon by default with Spring Mvc. New gateways use Spring Cloud Gateway and Spring Cloud Load Balancer with Spring Reactive
This has worked for me
npm install --save-dev ajv@^7
@hoomb This has worked for me too ty but I got conflicts when importing JDL after that npm install. My errors :
conflict src\main\webapp\i18n\fr\global.json ? Overwrite src\main\webapp\i18n\fr\global.json? overwrite force src\main\webapp\i18n\fr\global.json conflict src\main\webapp\i18n\en\global.json ? Overwrite src\main\webapp\i18n\en\global.json? do not overwrite skip src\main\webapp\i18n\en\global.json
Whatever conflict pops, I have to not overwrite to keep going.
I have those kinda conflicts for :
then got a ERROR Failed to compile with 70 errors
then a plethora amount of errors on such files, example ;
ERROR in src/main/webapp/app/entities/tool-type/tool-type-update.tsx:110:26 TS2339: Property 'category' does not exist on type 'IRootState'. 108 | 109 | const mapStateToProps = (storeState: IRootState) => ({
110 | categories: storeState.category.entities, | ^^^^^^^^ 111 | toolTypeEntity: storeState.toolType.entity, 112 | loading: storeState.toolType.loading, 113 | updating: storeState.toolType.updating,
Can't build my project so far because of the latest version it seems... Thank yall for the help !
Thanks @hoomb it worked.
This has worked for me
npm install --save-dev ajv@^7
Thanks @hoomb
This has worked for me
npm install --save-dev ajv@^7
Thanks it worked!!
This has worked for me
npm install --save-dev ajv@^7
Thanks man
npm install --save-dev ajv@^7 this command really worked out for me!
Overview of the issue
Trying to import entities created using JDL created by the online JDL Studio but looks there's missing npm package when I just type
jhipster jdl
. The blank default project loads, manually tested and passes e2e test.JHipster Info
→ jhipster info INFO! Using JHipster version installed locally in current project's node_modules Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)
git version 2.24.3 (Apple Git-128)
node: v14.16.0
npm: 6.14.11
Docker version 20.10.5, build 55c4c88
docker-compose version 1.28.5, build c4eb3a1f
No change to package.json was detected. No package manager install will be executed. Congratulations, JHipster execution is complete! Sponsored with ❤️ by @oktadev.