VS Code运行react-native项目报错:Type annotations can only be used in TypeScript files MQ 2020-04-12 7,133 阅读1分钟 1,问题分析是因为javascript的验证2,解决方法注:MAC端的VS CodeCode -> preferences -> Settings ->User, 搜索 javascript.validate, 默认是Enable,把勾选去掉