Note that there are some explanatory texts on larger screens.

plurals
  1. PO100+ errors in lib.d.ts with TypeScript in Visual Studio
    primarykey
    data
    text
    <p>I have a small-ish MVC4 web app using TypeScript for the clientside (~40 .ts files).</p> <p>When I upgraded TS to 0.9.1.1, I now see 100+ errors in lib.d.ts appearing the error list in Visual Studio 2012. </p> <p>The problem is unavoidable (all members of our team got the same thing when they upgraded), but literally impossible to reliably reproduce. Some behaviours:</p> <ul> <li>The errors will not appear right away, only after a certain (seemingly random) amount of time.</li> <li>They will usually be triggered on saving a file.</li> <li><p>They are things like:</p> <p>"All named properties must be subtypes of string indexer type 'any'"</p></li> <li>Removing any .ts file from the project or restarting VS will make them go away for a time, but they will always come back.</li> <li>The compiler still runs, and all .js files are generated correctly.</li> </ul> <p>I have tried setting up a new empty project, in both VS2012 and VS2013 RC, then started adding our TS classes one by one. At some point, the errors will appear, but retracing steps has proved completely fruitless in identifying what might kick it off. However, it does seem to only happen as you approach 15-20 .ts files.</p> <p>I'm at my wits end here.</p> <p>PS. In the error list, the under the "Project" column, it often names a particular file, rather than a project. Quite often it's a definitions file, e.g. underscore.d.ts. Why would this be named as a Project?</p> <p>EDIT:</p> <p>I've managed to recreate this with a single .ts file and a handful of definition files.</p> <p>App.ts</p> <pre><code>module Application { export class Main { constructor(options?) { } } } </code></pre> <p>In addition to most recent versions of:</p> <pre><code>backbone.d.ts jquery.d.ts underscore.d.ts backbone.relational.d.ts </code></pre> <p>I made many rapid changes and saves to App.ts to reproduce i.e. ~10 in 5 seconds. Could this suggest a file permissions error?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload