2017-02-20 53 views
0

我已經克隆TempHire和VS2015打開解決方案(更新3),但我得到以下一飲而盡生成錯誤: - 位於CTempHire咕嘟咕嘟生成錯誤

錯誤:/用戶/保羅/來源/回購/ temphire.angular2/TempHire/node_modules/@types/jasmine/index.d.ts:39:38:只有在函數或構造函數實現中才允許使用參數初始值設定項。 C:/Users/Paul/Source/Repos/temphire.angular2/TempHire/node_modules/@types/jasmine/index.d.ts錯誤:39:46:無法找到名稱'keyof'。 錯誤在C:/Users/Paul/Source/Repos/temphire.angular2/TempHire/node_modules/@types/jasmine/index.d.ts:39:52:'='預計。

index.d.ts的第39行如下所示: - 聲明函數spyOn(object:T,method:keyof T):jasmine.Spy;

這裏是展示生成錯誤截圖: - enter image description here

回答

0

這是茉莉花的版本和您正在使用的Visual Studio使用打字稿版本的兼容性問題。您應該能夠通過upgrading TypeScript解決此問題。

請注意,Visual Studio安裝的TypeScript版本可能與您在package.json中指定的版本不同。