0👍
Did you try to put a type after the computed property like so?
unitsString() :string{
return ...
}
Typescript with Vue reacts weirdly with computed properties which are inferred.
- [Vuejs]-Vue.js – Initialise a variable on page load
- [Vuejs]-Vue.js: How to prevent the user from entering characters other than letters and numbers
Source:stackexchange.com