when i try to import jhipster-jdl.jh in my app, i have this error : Could not find jhipster-jdl.jh, make sure the path is correct.
Asked
Active
Viewed 101 times
0
-
Have you checked file permissions and that filename does not contain hidden characters? You could also run `node -e "const shelljs = require('shelljs'); const res = shelljs.test('-f', 'jhipster-jdl.jh'); console.log(res);"` this is exactly what jhipster does. If it does print false, then it means it's not a jhipster issue. – Gaël Marziou Mar 27 '20 at 19:53
-
thanks, it prints false. do you know where i should look ? – Jean Camard Mar 28 '20 at 09:10
-
1The error message is telling you that it cannot find the file `jhipster-jdl.jh` in the current directory (`C:\Users\Omen\Back\laliste\myApp`). Make sure it's there and has read permissions, or provide the proper path in your command. – vicpermir Mar 28 '20 at 09:14
-
1thanks, i found the solution, my file.jh was not well placed – Jean Camard Mar 28 '20 at 09:48
1 Answers
0
You should use include the path to the file (which normally would go here: src/main/webapp/script)
jhipster import-jdl src/main/webapp/script/test.jh
It is a common mistake! It is explained in the book: Full Stack Development with JHipster: Build full stack applications and microservices with Spring Boot and modern JavaScript frameworks
which is really helpful when you start.

Mike
- 1,059
- 5
- 28
- 51