Visual Studio Code:[js] types can only be used in a .ts file

前端 未结 4 1570
小蘑菇
小蘑菇 2021-02-08 06:14

Is it possible to use .js files in a typescript project in vs code? I have clone a react-native project from a github repository and opened it in visual studio code. When I add

4条回答
  •  广开言路
    2021-02-08 06:42

    Has that change the "Select Language Mode" for "TypeScript React" in list. it worked for me.

    enter image description here

提交回复
热议问题