I am currently using element-ui version 2.14.1 in a Vue Js project. I am importing only the select component on demand as recommended by element-ui here https://element.eleme.io/#/en-US/component/quickstart . In every component I use the select component, I get this error in the console
[Vue warn]: Computed property "validateState" was assigned to but it has no setter.
found in
---> <ElInput> at packages/input/src/input.vue
<ElSelect> at packages/select/src/select.vue
Does anyone have any Idea what is causing this error and how I can resolve it. It is really frustrating. I can provide more information if need be. Thank you in advance.
To provide more details as someone asked,
In main.js
I have
import lang from "element-ui/lib/locale/lang/en";
import locale from "element-ui/lib/locale";
locale.use(lang);
import { Option, Select, } from "element-ui";
Vue.use(Option);
Vue.use(Select);
While in my component I have
<template>
<div class="route-start">
<div>
<p class="text-secondary-orange font-semibold mb-3">Start</p>
</div>
<div class="state">
<label class="label">State</label>
<el-select filterable v-model="selectedState" placeholder="Select">
<el-option
v-for="state in states"
:key="state.id"
:label="state.name"
:value="state.id"
>
</el-option>
</el-select>
</div>
</div>
</template>
Then in the script section I have
export default {
data() {
return {
selectedState: "",
isLastMile: "",
states: []
};
},
}