Closed oopsaleem closed 1 year ago
I'm not seeing this in a generated app. Could you provide more info? what error do you see. I guess if you disable translation there might be lable and placeholder repeating twice on the same component?
The .yo-rc.json
looks wrong, should be missing enableTranslation: false
.
https://github.com/jhipster/generator-jhipster/blob/a5138a04b1a536f47b59bacd1dc84ede9ab8e0cd/generators/vue/templates/src/main/webapp/app/account/login-form/login-form.vue.ejs#L11
The translation process replaces the v-bind:label
with a label tag.
So we should remove the conditional tag.
You are 100% right. Thank you very much. I will close this issue.
Overview of the issue
Properties with the same name.
label
&placeholder
Motivation for or Use Case
generated by jhipster and causing errors.
Reproduce the error
Create a monolithic app using vue client.
Related issues
N/A
Suggest a Fix
Modify the template where it is used to generate the
login-form.vue
file:label
property from lines: 11 and 24placeholder
property from lines: 18 and 30JHipster Version(s)
8.0.0-beta.2
JHipster configuration
.yo-rc.json
file contents:{ "generator-jhipster": { "applicationType": "monolith", "authenticationType": "jwt", "baseName": "jhdemo", "buildTool": "maven", "cacheProvider": "ehcache", "clientFramework": "vue", "databaseType": "mongodb", "devDatabaseType": "mongodb", "devServerPort": 9060, "dtoSuffix": "DTO", "jhiPrefix": "jhi", "jhipsterVersion": "8.0.0-beta.2", "messageBroker": false, "microfrontend": false, "nativeLanguage": "en", "packageFolder": "com/mycompany/myapp", "packageName": "com.mycompany.myapp", "prodDatabaseType": "mongodb", "reactive": false, "searchEngine": false, "testFrameworks": [], "websocket": false, "withAdminUi": true } }
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryn/a
Browsers and Operating System
m1, macos Version 13.5