简体   繁体   English

TypeScript 错误未显示在 vs 代码的屏幕上

[英]TypeScript errors are not being shown on screen on vs code

在此处输入图像描述

Although on compiling error is being shown on the terminal, but no error(red underline) is being shown on the the vs code editor.虽然在终端上显示编译错误,但在 vs 代码编辑器上没有显示错误(红色下划线)。 How to resolve this?如何解决这个问题?

I managed to fix this by:我设法通过以下方式解决了这个问题:

  1. Going to Settings (on Mac "Code" -> "Preferences" -> "Settings")转到设置(在 Mac 上“代码”->“首选项”->“设置”)
  2. Searching for something like "Typescript validate"搜索“Typescript validate”之类的内容
  3. In the results that appear, making sure that "Enable/disable TypeScript validation" is checked.在出现的结果中,确保选中“启用/禁用 TypeScript 验证”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VS Code 未内联显示 Typescript 错误 - VS Code not showing Typescript errors inline 安装了TypeScript,但未被VS Code或Windows识别 - TypeScript installed, but not being recognized by VS Code or Windows VS Code和Typescript监视:正在重新编译文件而不保存文件 - VS Code and Typescript watch: Files are being recompiled without being saved VS 2013中的打字稿错误 - Typescript errors in VS 2013 在 VS 代码中使用 TypeScript 在最新版本上给出 Canvas 错误 - Using TypeScript in VS Code giving Canvas errors on latest version VS Code中的“找不到名称'x'”Typescript错误不一致 - Inconsistent “Cannot find name 'x'” Typescript errors in VS Code 使用 Vue3 + TypeScript + Vite 的 VS Code 语法错误 - Syntax errors on VS Code with Vue3 + TypeScript + Vite 使用gulp-typescript在VS2015中不显示Typescript编译错误 - Typescript compilation errors not being displayed in VS2015 using gulp-typescript 使用 Lerna、Typescript 和 VS Code 排除某些路径自动导入 - Exclude certain paths from being autoimported with Lerna, Typescript, and VS Code 在 Visual Studio Code 中使用 TypeScript 时,如何将 TS 警告配置为显示为错误? - When using TypeScript in Visual Studio Code, how do I configure TS warnings to be shown as errors?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM