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

health.component.html:32:22 - error TS2339: Property 'OUT_OF_SERVICE' does not exist... #24650

Closed
sbouchex opened this issue Dec 22, 2023 · 3 comments · Fixed by #24651
Closed

Comments

@sbouchex
Copy link
Contributor

Overview of the issue

I'm generating a simple app and at npm start, I'm getting the following error:

`
Build at: 2023-12-22T08:28:35.868Z - Hash: 8f4158395ed950e0 - Time: 19468ms

Error: src/main/webapp/app/admin/health/health.component.html:32:22 - error TS2339: Property 'OUT_OF_SERVICE' does not exist on type '{ UNKNOWN: string; UP: string; DOWN: string; }'.

32 {{ { UNKNOWN: 'INCONNU', UP: 'DISPONIBLE', DOWN: 'HORS SERVICE' }[componentHealth.value!.status || 'UNKNOWN'] }}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/main/webapp/app/admin/health/health.component.ts:13:16
13 templateUrl: './health.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component HealthComponent.

`

Reproduce the error

Just generate the attached app

JHipster Version(s)

8.1.0

JHipster configuration
JDL definitions
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "oauth2",
    "baseName": "analytiscout",
    "buildTool": "maven",
    "cacheProvider": "no",
    "clientFramework": "angular",
    "clientTestFrameworks": [],
    "clientTheme": "cosmo",
    "clientThemeVariant": "primary",
    "creationTimestamp": 1703233503956,
    "databaseType": "no",
    "devDatabaseType": "no",
    "devServerPort": 4200,
    "enableGradleEnterprise": null,
    "enableHibernateCache": false,
    "enableSwaggerCodegen": false,
    "enableTranslation": true,
    "entities": [],
    "feignClient": false,
    "gradleEnterpriseHost": null,
    "jhipsterVersion": "8.1.0",
    "languages": ["fr"],
    "messageBroker": false,
    "microfrontend": null,
    "microfrontends": [],
    "nativeLanguage": "fr",
    "packageName": "fr.sgdf.analytiscout",
    "prodDatabaseType": "no",
    "reactive": false,
    "searchEngine": false,
    "serverPort": null,
    "serverSideOptions": [],
    "serviceDiscoveryType": false,
    "skipUserManagement": true,
    "testFrameworks": [],
    "websocket": false,
    "withAdminUi": true
  }
}
  
Browsers and Operating System

On french Windows with JDK17

@sbouchex
Copy link
Contributor Author

My app is defined as "languages": ["fr"] but if I'll define as ["fr", "en"], it works well. Should not we make "en" mandatory to cover thoses cases ?

@qmonmert
Copy link
Contributor

@DanielFran I confirm the issue

@qmonmert
Copy link
Contributor

I try to fix it

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.

3 participants