VS2015 Typescript 在保存时编译为单个文件不起作用 [英] VS2015 Typescript compile to single file on save not working

查看:31
本文介绍了VS2015 Typescript 在保存时编译为单个文件不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 VS 2015 和 Typescript 编译时遇到问题.如果我启用将所有输出合并到一个文件中,则输出文件将不会在保存时更新.在构建过程中,文件得到正确更新.有时,状态栏中会显示一条错误消息,指出无法写入 .map 文件.如果我禁用了一个文件选项,则保存时编译会起作用.

是否有任何选项可以启用某些日志记录,以便我找出问题所在?

I have trouble with VS 2015 and Typescript compile on save. If I enable combine all outputs into one file that output file will not be updated on save. During build the file gets updated correctly. Some times there is an error message in the status bar which states the .map file can't be written. If i disable the one file option compile on save is working.

Is there any option to enable some logging so I could figure out what is going wrong?

更新:我能够使用一个新的干净项目以及在另一台拥有完全不同现有项目的同事的 PC 上重现这一点.所以这似乎是一个普遍的错误.

Update: I was able to reproduce this with a new clean Project and also on another PC of a collegue with a completeely different existing project. So this seems to be a general bug.

推荐答案

是的,我也转载了

您需要设置 JavaScript 文件的完整路径

You need to set full path for JavaScript file

这篇关于VS2015 Typescript 在保存时编译为单个文件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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