After vscode installs ts, TSC compiles and generates JS, and an error is reported (repeated variables, etc.)

1、 Open the command line under the TS file sibling directory, and enter

tsc --init

2、 File – preferences – settings
to search for validate, you should check the third one. Then compile TSC again. If so, check these preferences

Read More: