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 create a new entity for jhipster 6.8.0 bug #147

Closed
khashvin opened this issue Jun 18, 2020 · 2 comments · Fixed by #211
Closed

Unable to create a new entity for jhipster 6.8.0 bug #147

khashvin opened this issue Jun 18, 2020 · 2 comments · Fixed by #211
Labels
bug Something isn't working need-jhipster-upgrade v2.0.0 Stable version with jhipster 7.0.0
Milestone

Comments

@khashvin
Copy link

Describe the bug
Unable to create a second entity after starting a new project
This is the error that I got after creating the second entity

events.js:174
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot read property 'toLowerCase' of undefined
    at Function.plural (C:\Users\HASHVIN\Documents\lov-admin\node_modules\pluralize\pluralize.js:133:24)
    at pluralize (C:\Users\HASHVIN\Documents\lov-admin\node_modules\pluralize\pluralize.js:174:46)
    at context.relationships.forEach.relationship (C:\Users\HASHVIN\Documents\lov-admin\node_modules\generator-jhipster\generators\entity\index.js:933:74)
    at Array.forEach (<anonymous>)
    at module.exports.loadInMemoryData (C:\Users\HASHVIN\Documents\lov-admin\node_modules\generator-jhipster\generators\entity\index.js:877:39)
    at Object.<anonymous> (C:\Users\HASHVIN\Documents\lov-admin\node_modules\yeoman-generator\lib\index.js:647:25)
    at C:\Users\HASHVIN\Documents\lov-admin\node_modules\run-async\index.js:49:25
    at new Promise (<anonymous>)
    at C:\Users\HASHVIN\Documents\lov-admin\node_modules\run-async\index.js:26:19
    at self.env.runLoop.add.completed (C:\Users\HASHVIN\Documents\lov-admin\node_modules\yeoman-generator\lib\index.js:648:11)
Emitted 'error' event at:
    at Immediate.setImmediate (C:\Users\HASHVIN\Documents\lov-admin\node_modules\yeoman-generator\lib\index.js:668:20)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)

To Reproduce
Steps to reproduce the behavior:

  1. Create new project
  2. Create 1st entity with entity generator
  3. Create 2nd entity with many to one relationship to 1st entity
  4. See error

Desktop (please complete the following information):

  • OS: Windows 10
  • NodeJS v10.20.1
@ghost
Copy link

ghost commented Jun 18, 2020

Hi @khashvin , thanks for the feedback!! But could you please add the steps command that you have executed with the entity name? Maybe you have choosen a name not allowed.

@ghost ghost added the more information is needed More information are required to understand issue label Jun 22, 2020
@ghost
Copy link

ghost commented Jun 30, 2020

I investigate on this, it is a jhipster bug fixed in 6.9.0 version : jhipster/generator-jhipster#11595

So we need to upgrade the version from 6.8.0.
Thanks.

@ghost ghost added bug Something isn't working and removed more information is needed More information are required to understand issue labels Jun 30, 2020
@ghost ghost self-assigned this Jun 30, 2020
@ghost ghost changed the title Unable to create a new entity Unable to create a new entity for jhipster 6.8.0 bug Jun 30, 2020
@ghost ghost added the v2.0.0 Stable version with jhipster 7.0.0 label Mar 26, 2021
@ghost ghost added this to the 2.0.0 milestone Mar 26, 2021
@ghost ghost linked a pull request Mar 26, 2021 that will close this issue
@ghost ghost closed this as completed in #211 Mar 31, 2021
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 need-jhipster-upgrade v2.0.0 Stable version with jhipster 7.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant