Skip to content
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

Enum generation error for import-jdl #57

Closed
ghost opened this issue Sep 25, 2019 · 5 comments
Closed

Enum generation error for import-jdl #57

ghost opened this issue Sep 25, 2019 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@ghost
Copy link

ghost commented Sep 25, 2019

Describe the bug
related to #56 in the comment

To Reproduce

jhipster import-jdl <my-file.jh> --blueprints nodejs

Expected behavior
Correct generation without error

Additional context
The error is that missing in utils the buildEnumInfo function.

@ghost ghost changed the title Enum generation error Enum generation error for import-jdl Sep 25, 2019
@ghost ghost self-assigned this Sep 25, 2019
@ghost ghost added the bug Something isn't working label Sep 25, 2019
@ghost ghost added this to the 1.0.0-alpha.3 milestone Sep 25, 2019
ghost pushed a commit that referenced this issue Sep 25, 2019
@ghost
Copy link
Author

ghost commented Sep 25, 2019

Hi @venkataramkishore,
Now you can try with your jdl if the bug is resolved.
Follow the CONTRIBUTING.MD and checkout on feature/no-maven branch for the generator-jhipster-nodejs

@venkataramkishore
Copy link

Hi @amanganiello90,
Following are the steps i have followed:

git clone
cd generator-jhipster-nodejs
generator-jhipster-nodejs>git branch --list
*master
generator-jhipster-nodejs>git checkout --track -b feature/no-maven
generator-jhipster-nodejs>git pull
Already up-to date
generator-jhipster-nodejs>git branch --list
*feature/no-maven
master
generator-jhipster-nodejs>cd generator-jhipster-nodejs
generator-jhipster-nodejs> npm install
generator-jhipster-nodejs> npm link generator-jhipster

cd..
cd myproject
myproject>jhipster import-jdl .jh --blueprint nodejs

** I have new error cannot find module 'read-pkg-up'**

image

image

image

image

@ghost
Copy link
Author

ghost commented Sep 26, 2019

Hi @venkataramkishore,
the last commands are wrong. Following these:

    git clone
    cd generator-jhipster-nodejs
    generator-jhipster-nodejs>git branch --list
    *master
    generator-jhipster-nodejs>git checkout --track -b feature/no-maven
    generator-jhipster-nodejs>git pull
    Already up-to date
    generator-jhipster-nodejs>git branch --list
    *feature/no-maven
    master
    generator-jhipster-nodejs>cd generator-jhipster-nodejs
    generator-jhipster-nodejs> npm install
    generator-jhipster-nodejs> npm link 

    cd..
    cd myproject
    myproject>npm link generator-jhipster
    myproject>npm link generator-jhipster-nodejs
    myproject>jhipster import-jdl <your-jdl>.jh --blueprint nodejs

I tested with my-example.jh.
I have commented enums because in sqlite are not supported.

@venkataramkishore
Copy link

when generating it takes sqllite only for development, no other choice yet. I have enums for my entities to generate. As you suggest enum doesnot work
I still have tried your steps with enums in jdl and i have the following error

image

@ghost
Copy link
Author

ghost commented Sep 27, 2019

Hi @venkataramkishore ,
before npm link you have to perform npm install on generator-jhipster-nodejs and generator-jhipster projects.
Then, I will check and track the prodDatabase choose in another issue. I close this. Thanks.

@ghost ghost closed this as completed Sep 27, 2019
@ghost ghost mentioned this issue Oct 1, 2019
ghost pushed a commit that referenced this issue Oct 1, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant