Skip to content

Unhandled promise rejection #545

@amatosg

Description

@amatosg

Describe the bug
when generating an entity and selecting any numerical type, I'm getting the following error:

INFO! 
The entity WorkOrderInputLine is being created.


Generating field #1

✔ Do you want to add a field to your entity? Yes
✔ What is the name of your field? requiredQuantity
✔ What is the type of your field? Double
✔ Do you want to add validation rules to your field? Yes
✔ Which validation rules do you want to add? Required, Minimum
? What is the minimum of your field? 0ERROR! Unhandled promise rejection at:
FATAL! TypeError: Cannot read properties of undefined (reading 'fieldType')

To Reproduce
Steps to reproduce the behavior:

  1. run jhipster-quarkus entity WorkOrderInputLine
  2. add and name a field
  3. select Double
  4. See error

Expected behavior
Field is created properly

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Debian
  • Browser Firefox
  • Version 140.5
  • npm: 9.2.0
  • jhipster 8.11
  • java:
❯ java --version
openjdk 21.0.2 2024-01-16
OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)
  • blueprint: 3.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions