Installed Visual Studio 2015, added a TypeScript file to an existing project folder. File looks like this (from a Telerik sample):
interface Book {
title: string;
author: string;
bookInfo: () => string;
}
var b: Book = {
title: 'Moby Dick',
author: 'Herman Melville',
bookInfo: function () {
return this.title + " by : " + this.author;
}
}
var book = b.bookInfo();
alert(book);
Upon building the solution, I got an error:
Severity: Error
Description: Automation server can't create object
Project: Project1
File: VSTSC
Went into Developer Command Prompt for VS2015 and ran tsc just to see what comes back:
C:\Tfs\Project1\Scripts\app>tsc tsc.js(703, 13) JavaScript runtime error: Automation server can't create object
Same message as the one in Visual Studio 2015.
Unsure what is the problem with the TypeScript compiler. I did make sure I installed TypeScript 1.5.4 via Tools > Extensions and Updates.
What shall my next step be?