module Layout {
var a = localStorage.getItem('x');
export class aaa {
init() {;
var xxx = localStorage.getItem('x');
}
}
}
In Visual Studio 2012 with the 0.8.1 version I am getting a message on the line inside the init() function saying “the name localStorage does not exist in the current scope”. outside of the aaa class this works fine. Is there something I can do to solve this problem?
The 0.8.1 version of TypeScript has caused a bug in Web Essentials. There should be a fix in a few days.
In the meantime, if you install the 0.8.0 version of TypeScript that works with the current version, or you can compile from command line: