Answer the question
In order to leave comments, you need to log in
Why does the error "Property 'toLowerCase' does not exist on type 'Ref'" occur?
I ran into such a problem that when rewriting a component in
Vue 3 on the Composition API in the watch -er, an error appeared:
Property 'toLowerCase' does not exist on type 'Ref<string>'
interface ObjectOfCity {
city: string;
temperature: number;
}
watch(seachCityName, () => {
store.commit(
"SET_CITIES",
store.getters.fullListofCities.filter((city: ObjectOfCity) =>
city.city.toLowerCase().includes(seachCityName.toLowerCase())
)
);
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question