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

Unable to add this as blue-prints for --skip-client and --skip-server #136

Open
jgdvarun60 opened this issue Apr 16, 2020 · 3 comments
Open

Comments

@jgdvarun60
Copy link

No description provided.

@jduggan83
Copy link
Contributor

Hi, the server element is fundamental to this blueprint. Im surprised howver that the skip client option does not work for you

@jgdvarun60
Copy link
Author

jgdvarun60 commented Apr 19, 2020

As its not supported with latest version of jhipster (I think 6.8)
I tried with lower version of jhipster v6.3.1, this error is reporduceble with any jdl, just giving test jdl for reference

application {
  config {
    baseName test,
    applicationType monolith,
    packageName com.test
    authenticationType session,
    prodDatabaseType mysql,
    devDatabaseType mysql,
    cacheProvider ehcache,
    buildTool maven,
    clientFramework react,
    useSass false,
    testFrameworks []
  }
  entities *
}

entity Aa
entity Ba
entity Ca
entity Da
entity Ea
entity Fa
entity Ga
entity Ha
entity Pa

relationship OneToMany {
    Pa{aabc} to Aa{pabc} 
    Ba{pabc} to Pa{babc}
}

relationship ManyToOne {
    Pa{cabc} to Ca 
    Da{pabc} to Pa
}

relationship OneToOne {
    Pa{eabc} to Ea{pabc} 
    Fa{pabc} to Pa{fabc}
}

relationship ManyToMany {
    Pa{gabc} to Ga{pabc} 
    Ha{pabc} to Pa{habc}
}

filter Pa
dto * with mapstruct
service * with serviceImpl

generate server code
jhipster import-jdl test.jh --skip-client
...

add blueprint
jhipster --with-entity --blueprints multitenancy --skip-client
...
I think first time it installs the blueprint only, so I ran the same command again

jhipster --with-entity --blueprints multitenancy --skip-client

`
? What is the alias given to tenants in your application? Organization
events.js:186
throw er; // Unhandled 'error' event
^

Error: This module currently only supports Angular and React

at Environment.error (test/server/node_modules/yeoman-environment/lib/environment.js:176:40)
at module.exports.error (test/server/node_modules/generator-jhipster/generators/generator-base.js:1464:18)
at module.exports.validateCompatibility (test/server/node_modules/generator-jhipster-multitenancy/generators/common/index.js:128:26)
at Object.<anonymous> (test/server/node_modules/yeoman-generator/lib/index.js:424:27)
at test/server/node_modules/run-async/index.js:47:25
at new Promise (<anonymous>)
at test/server/node_modules/run-async/index.js:24:19
at test/server/node_modules/yeoman-generator/lib/index.js:425:13
at processImmediate (internal/timers.js:439:21)

Emitted 'error' event on Generator instance at:
at Immediate. (test/server/node_modules/yeoman-generator/lib/index.js:433:22)
at processImmediate (internal/timers.js:439:21)`

I am trying to separate client and server as per
https://www.jhipster.tech/separating-front-end-and-api/
So I should be able to generate client and server separately...

@jduggan83
Copy link
Contributor

Thanks very much for this detail. I will investigate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants