2017-07-11 4 views
0

私はVS2015を使用しています。 TS 1.8から2.4.1へのアップグレード後、TSは入力ファイルを見つけることができません。

Build:Cannot find name '$'. 

tsconfig.json:

{ 
"compileOnSave": true, 
"compilerOptions": { 
"module": "none", 
"allowJs": true, 
"outFile": "app.js", 
"noImplicitAny": false, 
"noEmitOnError": true, 
"removeComments": true, 
"sourceMap": true, 
"target": "es5" 
} 

私はこの問題を解決するために何ができますか?

+0

更新する方法についてのドキュメントを読んでみてください。開始するには:https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/ –

答えて

0

はtsconfig.jsonファイル内のすべてのTSとタイピングのファイルをリストすることによってそれを修正:

{ 
    "compileOnSave": true, 
    "compilerOptions": { 
    "module": "none", 
    "allowJs": true, 
    "outFile": "Scripts/app.js", 
    "noImplicitAny": false, 
    "noEmitOnError": true, 
    "removeComments": true, 
    "sourceMap": true, 
    "target": "es5" 
    }, 

    "files": [ 
    "Scripts/jquery.js", 
    "Scripts/typings/jquery/jquery.d.ts", 
    ... 
    "Scripts/main.ts" 
    ] 
} 
関連する問題