사과 "기호를 찾을 수 없습니다", 또는 나는 타이프 라이터 문서를 잘못 읽었습니다,하지만 :타이프 라이터 - 다른 파일에서 모듈 기능을 참조 - 나는 모듈이 ..</p> <p>을이에 대한 대답은 간단 경우
/// <reference path="Utils.ts" />
Utils.MyFunction(str);
그러나 다음과 같은 오류가 발생합니다 : :
module Utils{
export function MyFunction(str: string):string {
return // something to do with string
}
}
나는 상단에 내가 참조를 추가 할 수 있도록 다른 .TS 파일 (Clients.ts)이 사용하고 그것을 사용하려고 시도하는
/*
Compile Error.
See error list for details
[path]/Clients.ts(26,39): error TS2095: Could not find symbol 'Utils'.
[path]/Clients.ts(30,49): error TS2095: Could not find symbol 'Utils'.
error TS5037: Cannot compile external modules unless the '--module' flag is provided.
*/
아무도 내가 잘못하고있는 것을 설명 할 수 있습니까? 웹 요점 VS2012 및 타이프 라이터 0.9.1
감사를 사용
.
에서 일
그리고 이건 내 문제가 아니 었습니다. 답변을 아래에 게시합니다. – LiverpoolsNumber9