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

Language blueprint throws error at prompt #25470

Closed
1 task done
dwarakaprasad opened this issue Mar 12, 2024 · 0 comments · Fixed by #25471
Closed
1 task done

Language blueprint throws error at prompt #25470

dwarakaprasad opened this issue Mar 12, 2024 · 0 comments · Fixed by #25471

Comments

@dwarakaprasad
Copy link
Contributor

Overview of the issue

A language blueprint throws error during prompting,

Welcome to JHipster v8.1.0


Documentation for creating an application is at https://www.jhipster.tech/creating-an-app/

Application files will be generated in folder: /home/dwarka/develop/code/brmaStr/basepack/generator-jhipster-adikkal/testBed


WARNING! Could not retrieve version of JHipster declared by blueprint 'generator-jhipster-adikkal'
? What is the base name of your application? testBed
WARNING! Using global configuration values: { samplesFolder: '/home/dwarka/develop/jhipster/jhipster-samples' }
? Which type of application would you like to create? Monolithic application (recommended for simple projects)
? Besides Junit, which testing frameworks would you like to use?
? Do you want to make it reactive with Spring WebFlux? No
? What is your default Java package name? com.mycompany.myapp
? Which type of authentication would you like to use? JWT authentication (stateless, with a token)
? Which type of database would you like to use? SQL (H2, PostgreSQL, MySQL, MariaDB, Oracle, MSSQL)
? Which production database would you like to use? PostgreSQL
? Which development database would you like to use? H2 with in-memory persistence
? Which cache do you want to use? (Spring cache abstraction) Ehcache (local cache, for a single node)
? Do you want to use Hibernate 2nd level cache? Yes
? Would you like to use Maven or Gradle for building the backend? Maven
? Which other technologies would you like to use?
? Which Framework would you like to use for the client? Angular
? Besides Jest/Vitest, which testing frameworks would you like to use?
? Do you want to generate the admin UI? Yes
? Would you like to use a Bootswatch theme (https://bootswatch.com/)? Default JHipster
? Would you like to enable internationalization support? Yes
? Please choose the native language of the application English
ERROR! An error occured while running jhipster-adikkal:languages#askForLanguages
ERROR! ERROR! Cannot read properties of undefined (reading 'filter')
TypeError: Cannot read properties of undefined (reading 'filter')
at Object.choices (file:///home/dwarka/develop/jhipster/generator-jhipster/dist/generators/languages/prompts.js:58:68)
at /home/dwarka/develop/jhipster/generator-jhipster/node_modules/run-async/index.js:91:25
at new Promise ()
at /home/dwarka/develop/jhipster/generator-jhipster/node_modules/run-async/index.js:32:19
at Module.fetchAsyncQuestionProperty (file:///home/dwarka/develop/jhipster/generator-jhipster/node_modules/inquirer/lib/utils/utils.js:19:29)
at file:///home/dwarka/develop/jhipster/generator-jhipster/node_modules/inquirer/lib/ui/prompt.js:94:17
at doInnerSub (/home/dwarka/develop/jhipster/generator-jhipster/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:22:31)
at outerNext (/home/dwarka/develop/jhipster/generator-jhipster/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:17:70)
at OperatorSubscriber._this._next (/home/dwarka/develop/jhipster/generator-jhipster/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at Subscriber.next (/home/dwarka/develop/jhipster/generator-jhipster/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
at /home/dwarka/develop/jhipster/generator-jhipster/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:28:28
at OperatorSubscriber._this._next (/home/dwarka/develop/jhipster/generator-jhipster/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at Subscriber.next (/home/dwarka/develop/jhipster/generator-jhipster/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
at /home/dwarka/develop/jhipster/generator-jhipster/node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js:120:28
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Motivation for or Use Case

A language blueprint should work as required.

Reproduce the error

Create a language blueprint (sbs/not sbs) and try to generate a monolith application without any customization.

Related issues

None

Suggest a Fix

see pr

JHipster Version(s)

8.1.0

JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants