TypeScript 编译器没有编译文件,所以它会跳过编译 [英] The TypeScript Compiler was given no files for compilation, so it will skip compiling

查看:32
本文介绍了TypeScript 编译器没有编译文件,所以它会跳过编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 Visual Studio 2015 预览版中构建我的默认 JavaScript 项目(BlankApp Apache Cordova)时,出现以下错误.

When i am trying to Build my default JavaScript project(BlankApp Apache Cordova) in Visual Studio 2015 preview am getting following error.

TypeScript 编译器没有编译文件,所以它会跳过编译.

The TypeScript Compiler was given no files for compilation, so it will skip compiling.

在 Visual Studio 2015 预览版中采取的步骤:

Steps Taken in visual studio 2015 preview:

  1. 文件 -> 新建 -> 项目 -> Apache Cordova 应用程序(在 Javascript 模板下).

  1. File -> New -> Project -> Apache Cordova apps(under Javascript templates).

使用 Android Emulator 运行默认项目.

Run the default project with Android Emulator.

出现以下错误.

警告 2 TypeScript 编译器没有编译文件,所以它会跳过编译.C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets 97 5 BlankCordovaApp4

Warning 2 The TypeScript Compiler was given no files for compilation, so it will skip compiling. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets 97 5 BlankCordovaApp4

推荐答案

这是 CTP3 版本中的已知问题.听起来您已经创建了一个基于 JS 的项目,并且没有添加任何 TypeScript 文件,因此当然没有 .ts(又名 TypeScript)文件传递给编译器.理想情况下,编译器根本不会运行,但警告是无害的,其他一切都应该正常工作.

This is a known issue in the CTP3 release. It sounds like you've created a JS-based project, and have not added any TypeScript files, and so of course there are no .ts (aka TypeScript) files passed to the compiler. Ideally the compiler wouldn't be run at all, but the warning is harmless, and everything else should otherwise be working.

这篇关于TypeScript 编译器没有编译文件,所以它会跳过编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆