打字稿构建失败 [英] Typescript build failure

查看:34
本文介绍了打字稿构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有两个带有 typescript 1.1 的项目,它们在安装了 typescript 1.8 的 Visual Studio 2013 中打开.VS 要求升级我做了但现在我收到以下错误:未知的编译器选项listemittedfiles".有没有人遇到过?

I'm currently having two projects with typescript 1.1 that are opened in visual studio 2013 with typescript 1.8 installed. VS asks to upgrade which I did but now I get the following error: Unknown compiler option 'listemittedfiles'. Anyone has had the same?

推荐答案

似乎在项目内部我们硬编码了这一行

It seems inside the project we had this line hardcoded

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" />

这样即使升级到 1.8,它仍然尝试使用安装在该文件夹中的 w/e.(这是一个非常老的项目,需要维护......)

That way even though it was upgraded to 1.8 it still tried to use w/e was installed in that folder. (This is a very old project that needs maintenance...)

接下来,我删除了 Path 系统环境变量中的硬编码路径,以便 tsc.exe 现在指向 NPM 版本.

Next to that I've removed the hardcoded path in the Path system environment variables so that tsc.exe now points to the NPM version.

这篇关于打字稿构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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