我正在尝试开发一个名为doccano的 NLP 开源软件,我尝试只运行我运行命令npm install以获取所有需要的依赖项的前端部分,然后当我运行npm run dev它开始编译然后失败并出现此错误
/home/nissow/Documents/doccano/doccano/frontend/components/project/FormDelete.vue
33:14 error PropType not found in 'vue' import/named
当我检查FormDelete.vue时,我没有发现任何错误,也没有在vscode上检测到错误
<script lang="ts">
import Vue,{ PropType } from 'vue'
import BaseCard from '@/components/utils/BaseCard.vue'
import { ProjectDTO } from '~/services/application/project/projectData'
export default Vue.extend({
components: {
BaseCard
},
props: {
selected: {
type: Array as PropType<ProjectDTO[]>,
default: () => []
}
},
computed: {
nonDeletableProjects(): ProjectDTO[] {
return this.selected.filter(item => !item.current_users_role.is_project_admin)
},
hasNonDeletableProjects(): boolean {
return this.nonDeletableProjects.length > 0
}
}
})
</script>
这是 package.json 内容:
这是第二部分