0👍
✅
The setup() method does not work like you expect, it will not initiate data attributes (https://v3.vuejs.org/guide/composition-api-setup.html#accessing-component-properties)
Use mounted() instead and assign
this.tasks = tasks
also add tasks to your data object.
Source:stackexchange.com