visual studio code - Why am I getting “Type annotations can only be used in TypeScript files” with tsx files? - Stack Overflow

时间: 2025-01-06 admin 业界

enter image description here

i tired reinstall , reinstall the ts server different projects

but still same

anyone know the answer

Type annotations can only be used in TypeScript files.ts(8010)

its showing in all my projects

been confused with this its been a month