Vue v-text error message

已回答

Hello, 

I am using IntelliJ IDEA 2024.3.1.1 (Ultimate Edition) Build #IU-243.22562.218, built on December 18, 2024

how can I set up IntelliJ to reduce number of errors like: “Vue: v-text will override element children.”

generated by v-text

For example: 

<label class="mylabel12" v-text="$t('myApp.hrPrelevements.datePrlvtSld')"….

 

 

0

The error comes from the Vue language server; you are likely to encounter the same errors when utilizing other editors that rely on the Vue language server for type checking (such as VSCode) or when executing vue-tsc for your application.  v-text sets the textContent of the element, so it's a mistake to include v-text and actual text between your element tags, since v-text overrides the latter (as indicated by the error).

0

请先登录再写评论。