Skip to content

SFC compiler doesn't support TS 4.5 import { type X } #4968

@jods4

Description

@jods4

Version

3.2.22

Reproduction link

sfc.vuejs.org/

Steps to reproduce

With TS 4.5

<script setup type=ts>
import { type Ref } from "vue"
</script>

What is expected?

Compiles

What is actually happening?

Compilation error: Unexpected token, expected ","


https://devblogs.microsoft.com/typescript/announcing-typescript-4-5/#type-on-import-names

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