generator-jhipster: [v8 rc] Invalid ICU message error and Unexpected character "EOF" messages reported
Overview of the issue
Generated an entity with the attached json and ran npm start and plenty of errors are displayed
Logs
Error: src/main/webapp/app/entities/saison/delete/saison-delete-dialog.component.html:29:1 - error NG5002: Invalid ICU message. Missing '}'.29
src/main/webapp/app/entities/saison/delete/saison-delete-dialog.component.ts:12:16 12 templateUrl: ‘./saison-delete-dialog.component.html’, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component SaisonDeleteDialogComponent.
Error: src/main/webapp/app/entities/saison/delete/saison-delete-dialog.component.html:29:1 - error NG5002: Unexpected character “EOF” (Do you have an unescaped “{” in your template? Use “{{ ‘{’ }}”) to escape it.)
29
src/main/webapp/app/entities/saison/delete/saison-delete-dialog.component.ts:12:16 12 templateUrl: ‘./saison-delete-dialog.component.html’, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component SaisonDeleteDialogComponent.
Error: src/main/webapp/app/entities/saison/update/saison-update.component.html:128:1 - error NG5002: Invalid ICU message. Missing ‘}’.
128
src/main/webapp/app/entities/saison/update/saison-update.component.ts:17:16 17 templateUrl: ‘./saison-update.component.html’, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component SaisonUpdateComponent.
Error: src/main/webapp/app/entities/saison/update/saison-update.component.html:128:1 - error NG5002: Unexpected character “EOF” (Do you have an unescaped “{” in your template? Use “{{ ‘{’ }}”) to escape it.)
128
src/main/webapp/app/entities/saison/update/saison-update.component.ts:17:16 17 templateUrl: ‘./saison-update.component.html’, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component SaisonUpdateComponent.`
Motivation for or Use Case
Application is not starting
Reproduce the error
Generate the entities and start the app
Related issues
JHipster Version(s)
8.0.0-rc.1 + JDK 21
JHipster configuration
If you have a JDL please wrap it in below structure
JDL definitions
{
"generator-jhipster": {
"applicationType": "monolith",
"authenticationType": "oauth2",
"baseName": "lignedurgence",
"buildTool": "maven",
"cacheProvider": "ehcache",
"clientFramework": "angular",
"clientTestFrameworks": [],
"clientTheme": "cosmo",
"clientThemeVariant": "primary",
"creationTimestamp": 1697399864499,
"databaseType": "sql",
"devDatabaseType": "mariadb",
"devServerPort": 4200,
"enableGradleEnterprise": null,
"enableHibernateCache": true,
"enableSwaggerCodegen": false,
"enableTranslation": true,
"entities": ["Saison"],
"gradleEnterpriseHost": null,
"jhipsterVersion": "8.0.0-rc.1",
"languages": ["fr", "en"],
"lastLiquibaseTimestamp": 1697400191000,
"messageBroker": false,
"microfrontend": null,
"microfrontends": [],
"nativeLanguage": "fr",
"packageName": "fr.sgdf.lignedurgence",
"prodDatabaseType": "mariadb",
"reactive": false,
"searchEngine": "elasticsearch",
"serverPort": null,
"serverSideOptions": ["searchEngine:elasticsearch"],
"serviceDiscoveryType": false,
"skipUserManagement": true,
"testFrameworks": [],
"websocket": false,
"withAdminUi": true
}
}
Entity configuration(s) entityName.json files generated in the .jhipster directory
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
"generator-jhipster": {
"applicationType": "monolith",
"authenticationType": "oauth2",
"baseName": "lignedurgence",
"buildTool": "maven",
"cacheProvider": "ehcache",
"clientFramework": "angular",
"clientTestFrameworks": [],
"clientTheme": "cosmo",
"clientThemeVariant": "primary",
"creationTimestamp": 1697399864499,
"databaseType": "sql",
"devDatabaseType": "mariadb",
"devServerPort": 4200,
"enableGradleEnterprise": null,
"enableHibernateCache": true,
"enableSwaggerCodegen": false,
"enableTranslation": true,
"entities": [
"Saison"
],
"gradleEnterpriseHost": null,
"jhipsterVersion": "8.0.0-rc.1",
"languages": [
"fr",
"en"
],
"lastLiquibaseTimestamp": 1697400191000,
"messageBroker": false,
"microfrontend": null,
"microfrontends": [],
"nativeLanguage": "fr",
"packageName": "fr.sgdf.lignedurgence",
"prodDatabaseType": "mariadb",
"reactive": false,
"searchEngine": "elasticsearch",
"serverPort": null,
"serverSideOptions": [
"searchEngine:elasticsearch"
],
"serviceDiscoveryType": false,
"skipUserManagement": true,
"testFrameworks": [],
"websocket": false,
"withAdminUi": true
}
}
Environment and Tools
openjdk version “21” 2023-09-19 LTS OpenJDK Runtime Environment Temurin-21+35 (build 21+35-LTS) OpenJDK 64-Bit Server VM Temurin-21+35 (build 21+35-LTS, mixed mode, sharing)
git version 2.30.0.windows.2
node: v18.17.1 npm: 9.8.0
‘docker’ command could not be found
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
entity Saison {
nom String required unique maxlength(100)
debut Instant required
fin Instant required
emailEnvoi Boolean required
}
Browsers and Operating System
Windows
- Checking this box is mandatory (this is just to show you read everything)
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Reactions: 6
- Comments: 27 (13 by maintainers)
They are replaced at generation time.
@ettolo still not reproducible. Have you build the project after checking out or used the jit binary? https://github.com/jhipster/generator-jhipster/blob/main/CONTRIBUTING.md#set-jhipster-command-to-use-the-cloned-project
If it does, it’s fixed in main.
Same error for me (on windows with Angular frontend); solved removing the single curly brackets:
__jhiTransformTranslate__('vehiclemanagerApp.vehicles.delete.question', "id": "{{ vehicles.id }}" )I don’t have the issue of disappearing column names, only not compiling