TempHire咕嘟咕嘟生成错误

问题描述:

我已经克隆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

这是茉莉花的版本和您正在使用的Visual Studio使用打字稿版本的兼容性问题。您应该能够通过upgrading TypeScript解决此问题。

请注意,Visual Studio安装的TypeScript版本可能与您在package.json中指定的版本不同。