3👍
To avoid the warning
Solution 1:
props: {
Age: {
type: Number,
},
Name: {
type: String
},
To disable warning:
Solution 2:
add this rule in .eslintrc.js or .eslintrc.* or .eslintrc.json file
.eslintrc.js or .eslintrc.* or .eslintrc.json file
rules: {
//....add your existing rules and below line as well
"vue/require-prop-types":0
}
- [Vuejs]-Cannot access variable from named imports in vuejs
- [Vuejs]-Transition's hook creates issue once destroyed and called back
Source:stackexchange.com