最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio 2013 - TypeScript JavaScript Cache issue - Stack Overflow

programmeradmin1浏览0评论

I am using Visual Studio 2013 Update 1

I have written some code in TypeScript some days before, but most part of the code is mented.

Today, I unmented that code and trying to debug JavaScript file.

The strange thing is that I am seeing mented code in generated dynamic JavaScript.

My guess is that TypeScript is bringing this code from Cache.

So, to clear this cache I have restarted Visual Studio, cleared Internet Explorer Browser Cache, done iisreset, restarted system... all the pains with no luck.

Not understanding how to solve the problem!

I am using Visual Studio 2013 Update 1

I have written some code in TypeScript some days before, but most part of the code is mented.

Today, I unmented that code and trying to debug JavaScript file.

The strange thing is that I am seeing mented code in generated dynamic JavaScript.

My guess is that TypeScript is bringing this code from Cache.

So, to clear this cache I have restarted Visual Studio, cleared Internet Explorer Browser Cache, done iisreset, restarted system... all the pains with no luck.

Not understanding how to solve the problem!

Share Improve this question asked Apr 3, 2014 at 16:06 Ashok kumarAshok kumar 1,6205 gold badges36 silver badges74 bronze badges 3
  • TypeScript pile is not running – basarat Commented Apr 3, 2014 at 22:13
  • @basarat: I could see the generated JavaScript code in .js file – Ashok kumar Commented Apr 4, 2014 at 5:19
  • delete the .js file. See if it es back. Does it e back different? – basarat Commented Apr 4, 2014 at 13:06
Add a ment  | 

2 Answers 2

Reset to default 3

I can see the same behavior in Visual Studio Code. It kind of caches the .ts files, so when I do a build using Ctrl+Shift+B it generates the .js file using the old .ts files. Restarting visual studio helps.

TypeScript does not cache output.

Have you confirmed that any pilation is happening at all? Does the "modified" date on the .js file change?

发布评论

评论列表(0)

  1. 暂无评论