웹 필수 정보와 Typescript를 새로운 버전으로 업데이트합니다.Typescript requirejs web essentials 2.9
결과 내 프로젝트가 더 이상 작동하지 않습니다.
업데이트하기 전에/// <reference path="DefinitelyTyped/jqueryui.d.ts" />
/// <reference path="DefinitelyTyped/jquery-datatable.d.ts" />
import Common = module("Common");
import GMap = module("GMap");
declare var $: JQueryStatic;
export class Polygon extends GMap.Polygon {
내 생성 된 코드 (즉 일)이었다 :
여기 내 타이프 라이터 코드의
var __extends = this.__extends || function (d, b) {
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
define(["require", "exports", "GMap", "Common"], function(require, exports, __GMap__, __Common__) {
var GMap = __GMap__;
var Common = __Common__;
var Polygon = (function (_super) {
__extends(Polygon, _super);
function Polygon() {
_super.apply(this, arguments);
}
지금 보면 같은 : 내 콘솔에서
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var Common = require("./Common");
var GMap = require("./GMap");
var Polygon = (function (_super) {
__extends(Polygon, _super);
을 이 오류가 있습니다 :
잡히지 않은 오류 : 모듈 이름 "Common"이 컨텍스트에 대해 아직로드되지 않았습니다 : _.
구성에 Common을 추가하려고합니다. 하지만 업데이트하기 전에 그냥 잘 작동합니다.
누군가 내 도움이 될 수 있습니다. 어쩌면 프로젝트 코드를 변경해야 할 수도 있습니다.
감사합니다,
제롬
UPDATE 난 그냥 그 웹 에센셜 2.9로 인해 볼
, 나는 더 이상 AMD 모듈에 대한 컴파일러 옵션을 지정하는 옵션이 없습니다.
난 그냥 확장을 제거하고 2.7 버전을 다시 설치 : 당신은 AMD의 옵션을 사용하여 컴파일해야
http://vswebessentials.com/nightly/webessentials2012-2.7.vsix