4👍
✅
You need to declare typing for listItems
like this:
const listItems = ref<string[]>([]);
otherwise TypeScript won’t know what type of array listItems
is
👤Owl
Source:stackexchange.com