Skip to content

Instantly share code, notes, and snippets.

@hepaestus
Created October 16, 2019 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hepaestus/73818a027bc940f907b65d3c7a597445 to your computer and use it in GitHub Desktop.
Save hepaestus/73818a027bc940f907b65d3c7a597445 to your computer and use it in GitHub Desktop.
$ jhipster --blueprints multitenancy import-jdl jhipster-jdl.jh --force
INFO! No custom commands found within blueprint: generator-jhipster-multitenancy
INFO! Using JHipster version installed locally in current project's node_modules
INFO! No custom commands found within blueprint: generator-jhipster-multitenancy
INFO! Executing import-jdl jhipster-jdl.jh
INFO! Options: blueprints: multitenancy, force: true, from-cli: true, inline:
INFO! Found .yo-rc.json on path. This is an existing app
INFO! The JDL is being parsed.
INFO! Found entities: Company, OfficeLocation, Candidate, Offer, Approval, OfferSignature, CompiledOffer, OfferContent, DefaultOfferContent, Attachments, Paragraph, ParagraphPlacement, SpecialConditions, EmailSystemConfig, EmailConfiguration, Recipient, CompanyContact.
INFO! The JDL has been successfully parsed
INFO! Generating 17 entities.
info Using blueprint generator-jhipster-multitenancy for entity subgenerator
info Using blueprint generator-jhipster-multitenancy for entity subgenerator
info Using blueprint generator-jhipster-multitenancy for entity subgenerator
info Using blueprint generator-jhipster-multitenancy for entity subgenerator
info Using blueprint generator-jhipster-multitenancy for entity subgenerator
...
info Using blueprint generator-jhipster-multitenancy for entity subgenerator
info Using blueprint generator-jhipster-multitenancy for entity subgenerator
info Using blueprint generator-jhipster-multitenancy for entity subgenerator
info Using blueprint generator-jhipster-multitenancy for entity subgenerator
info Using blueprint generator-jhipster-multitenancy for entity subgenerator
Found the .jhipster/Company.json configuration file, entity can be automatically generated!
The entity Company is being updated.
Found the .jhipster/OfficeLocation.json configuration file, entity can be automatically generated!
The entity OfficeLocation is being updated.
Found the .jhipster/Candidate.json configuration file, entity can be automatically generated!
...
...
? Do you want to make EmailSystemConfig tenant aware? Yes
? Do you want to make EmailConfiguration tenant aware? Yes
? Do you want to make Recipient tenant aware? Yes
? Do you want to make CompanyContact tenant aware? Yes
Saving Company tenantAware
Entity OfficeLocation found. Adding relationship
Saving OfficeLocation tenantAware
...
info Using blueprint generator-jhipster-multitenancy for entity-server subgenerator
info Using blueprint generator-jhipster-multitenancy for entity-client subgenerator
info Using blueprint generator-jhipster-multitenancy for entity-server subgenerator
info Using blueprint generator-jhipster-multitenancy for entity-client subgenerator
events.js:174
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'substring' of undefined
at templates.forEach.file (/home/pete/git/offerLetterJhipster/offer-letter/node_modules/generator-jhipster-multitenancy/generators/multitenancy-utils.js:73:35)
at Array.forEach (<anonymous>)
at Object.requireTemplates (/home/pete/git/offerLetterJhipster/offer-letter/node_modules/generator-jhipster-multitenancy/generators/multitenancy-utils.js:64:15)
at Object.entityTenantAwareTemplates (/home/pete/git/offerLetterJhipster/offer-letter/node_modules/generator-jhipster-multitenancy/generators/entity-server/files.js:11:21)
at module.exports.customServerCode (/home/pete/git/offerLetterJhipster/offer-letter/node_modules/generator-jhipster-multitenancy/generators/entity-server/index.js:98:68)
at Object.<anonymous> (/home/pete/git/offerLetterJhipster/offer-letter/node_modules/generator-jhipster-multitenancy/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:424:27)
at /home/pete/git/offerLetterJhipster/offer-letter/node_modules/run-async/index.js:25:25
at new Promise (<anonymous>)
at /home/pete/git/offerLetterJhipster/offer-letter/node_modules/run-async/index.js:24:19
at self.env.runLoop.add.completed (/home/pete/git/offerLetterJhipster/offer-letter/node_modules/generator-jhipster-multitenancy/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:425:13)
Emitted 'error' event at:
at Immediate.setImmediate (/home/pete/git/offerLetterJhipster/offer-letter/node_modules/generator-jhipster-multitenancy/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:433:22)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
pete@Medussa:~/git/offerLetterJhipster/offer-letter (OL-85-B) $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment