-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating a new app with JDL and i18n doesn't compile #135
Comments
@amanganiello90 I'm curious - why do you have to manually run |
If I use above JDL with
|
If I change it to
Therefore, I think it should be changed to |
If I change the database to
Here's my JDL:
|
There is another node_modules for the backend part under server folder.
For the jdl validation you have to use postgresql..postgres is the object expected from typeORM. I will test it to pass from jdl.
This is an error of the client side that the blueprint does not change, related to typescript. I have integration test with react client and entities, and it is ok: https://github.com/jhipster/generator-jhipster-nodejs/runs/621661955 Could you please use my jdl in order to understand the differences? Thanks |
@amanganiello90 I tried removing Elasticsearch since that seems to be one difference between our JDLs. When I do that, I get a new error when the server starts.
|
Oh yes, in dev profile (sqlite db) the enums are not supported: https://github.com/jhipster/generator-jhipster-nodejs/blob/master/README.md#-what-we-have-now. Run the app with prod profile in order to use your prod database:
I have an issue to find a way not using that in dev profile #74 |
I'm on a Mac, so I had to use
|
Now docker support is only for sonar and keycloak (there are not database containerization yet). It is all explained in the README generated: https://github.com/jhipster/jhipster-sample-app-nodejs/tree/master/server#typeorm-configuration Instead, If you want to use sqlite db (that is on file like H2 for java), before you have to delete enums from generation. From what I understand, in summary, the errors to be tested and improved are two:
I will create two new issue. Thanks. |
I close it because there are two related issues for this. Thanks |
Describe the bug
I created a new app from the following JDL and it doesn't compile.
To Reproduce
Create a new directory and put the above JDL into an
app.jdl
file. Then run:Run
npm install && cd server && npm install
.Then run
npm run start:app
. You'll get the following error:Expected behavior
I expect
npm run start:app
to work, my entities to be be properly generated, andnpm run e2e
to pass. 🙂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.5" 2019-10-15
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.5+10, mixed mode)
git version 2.24.2 (Apple Git-127)
node: v12.16.3
npm: 6.14.4
yeoman: 3.1.1
yarn: 1.22.4
Docker version 19.03.8, build afacb8b
docker-compose version 1.25.4, build 8d51620a
INFO! Congratulations, JHipster execution is complete!
The text was updated successfully, but these errors were encountered: