Subscribe on changes!

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

avatar
Mar 7th 2023

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

avatar
Mar 8th 2023

Currently, TS 4.9 is not supported yet. Maybe we should fix this issue after merging https://github.com/vuejs/core/pull/7141.

avatar
Mar 23rd 2023

Supported already 53e3533b75adc32f979adde34bde3b581e48084b