Skip to content

ts error: cannot find name "ref" #663

@seho-dev

Description

@seho-dev

When I use unplugin-auto-import, a plug-in that automatically imports functions, I just write a ref and my program will report an error. How can vue-tsc solve it?

image

<script lang="ts" setup>
const a = ref<number>(1)
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions