Skip to content

SFC compiler doesn't support new TypeScript (4.9+) feature #7851

@nathpaiement

Description

@nathpaiement

Vue version

3.2.47

Link to minimal reproduction

https://sfc.vuejs.org/#eNp9kk1vwjAMhv9KlAsXSLRrVZAmpF132DWXAgYKzYdsF4aq/vc50AGDbafEzutHtt90+jUlc2hBF7qkJdaJVVOFzdRpJqcVAbdp5kLtU0RWnfKnd94CzmMTUfVqjdGrkbHz6JNhGl2VfEog8r91yxiIBXdRTEV7qJoWCjVCWI2kxFpFFde0roEGjqQWCNWeVB3Ux9vchdJempYWJWDwqakYJFKq3L7Mutzwudac6arvSyv5H++3gR5Fpb0S9VhfJpv4KpkdxSAb6zLHDQ+yrkKdMzknK82x01vmRIW1tF7mPe/IRNxYuRlsA9ceDJCfLDAeCVDATo/vGFaSB8AJQlgBAv7HfJA+cTO2d6GXUQYbZAT4vNn1ZAUx1mGTiwbZt2l3f+DeuYUc2bpffDtG3JPuvwANsNh4

Steps to reproduce

Uncomment "satisfies Color" from App.vue line 4

What is expected?

That SFC TS code gets transpiled just as well as standalone TS

What is actually happening?

Some new TS feature ("statisfies" in this case) isn't supported by the SFC

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions