2016-09-23 65 views
0

長話短說,我試圖從TS 1.8轉換到2. *版本和我使用的第三方類型之一是「角」。所以,現在我從故宮@types庫引用他們,他們似乎都與第二版本的標準已經修改......問題與TypeScript 2.0 @types - specificaly「角」一個

而且我得到這個問題:

enter image description here

看起來既不Visual Studio中和Visual Studio Code,並且gulp編譯器不理解那個引用它的新屬性「types」。

我在全球安裝了[email protected]

在根據compilerOptions財產tsconfig.json我已經加入:

"typeRoots": ["node_modules/@types/"], 
    "types": [ 
     "angular", 
... 
    ] 

但它並沒有解決這個問題。也許有人知道解決方案

回答