Quando adiciona o PropType no componente tarefa, recebo o seguinte erro:
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: D:\estudos\vue\alura-traker\src\components\TarefaComp.vue: Unexpected token, expected "," (11:19)
9 | props: {
10 | tarefa: {
> 11 | type: Object as PropType<ITarefa>,
| ^
12 | required: true
13 | }
14 | }
at instantiate (D:\estudos\vue\alura-traker\node_modules\@babel\parser\lib\index.js:72:32)
at constructor (D:\estudos\vue\alura-traker\node_modules\@babel\parser\lib\index.js:359:12)
Assim está meu componente:
import { defineComponent, PropType } from "vue";
import CronometroComponent from "@/components/CronometroComponent";
import ITarefa from "@/interfaces/ITarefa";
export default defineComponent({
name: 'TarefaComp',
components: {CronometroComponent},
props: {
tarefa: {
type: Object as PropType<ITarefa>,
required: true
}
}
});