1
Webstorm 7을 사용하여 TypeScript를 개발해오고 있습니다. 현재 Webstorm이 ts 파일을 변환하지 못하게하는 오류 메시지가 표시됩니다. 전에이 문제를 본 사람이 있습니까? 그건 그렇고, 나는 맥에있어.Webstorm에서 TypeScript 변환 오류가 발생했습니다.
/usr/local/lib/node_modules/typescript/bin/tsc --sourcemap MyClass.ts --module AMD --target ES5
/usr/local/lib/node_modules/typescript/bin/tsc.js:44963
if (decl.kind == 32 /* DynamicModule */) {
^
TypeError: Cannot read property 'kind' of undefined
at SemanticInfoChain.findDecls (/usr/local/lib/node_modules/typescript/bin/tsc.js:44963:33)
at SemanticInfoChain.findSymbol (/usr/local/lib/node_modules/typescript/bin/tsc.js:45040:30)
at /usr/local/lib/node_modules/typescript/bin/tsc.js:37104:52
at PullTypeResolver.findTypeSymbolForDynamicModule (/usr/local/lib/node_modules/typescript/bin/tsc.js:36426:30)
at PullTypeResolver.resolveImportDeclaration (/usr/local/lib/node_modules/typescript/bin/tsc.js:37103:36)
at PullTypeResolver.resolveAST (/usr/local/lib/node_modules/typescript/bin/tsc.js:39157:33)
at PullTypeResolver.resolveList (/usr/local/lib/node_modules/typescript/bin/tsc.js:38618:26)
at PullTypeResolver.resolveAST (/usr/local/lib/node_modules/typescript/bin/tsc.js:39132:33)
at PullTypeResolver.resolveModuleDeclaration (/usr/local/lib/node_modules/typescript/bin/tsc.js:36610:30)
at PullTypeResolver.resolveAST (/usr/local/lib/node_modules/typescript/bin/tsc.js:39138:33)
당신이 콘솔 작품에서 같은 컴파일을하는 건가요 : 당신이 타이프의 약간 이전 버전을 사용하려고 할 수 있습니까? – WiredPrairie
그것을 알아 냈습니다. 빈 클래스를 가져올 때이 오류가 발생합니다. 긴 하루가 있어야합니다. (감사합니다. –