Visual Studio 2013 和 TypeScript 的 SystemJS 模块

SystemJS modules with Visual Studio 2013 and TypeScript

我正在尝试将 Visual Studio 2013 中的 SystemJS 模块与 TypeScript 一起使用,但 Visual Studio 显示错误。

这是我的设置:

这是我看到的:

这个问题与 有关,但是,那里的答案是 'use VS 2015',这对我来说根本不是一个选择。

在 Visual Studio 2013 年有什么方法可以将 SystemJS 与 TypeScript 结合使用吗?它不一定是 ES6 风格的模块,只需 SystemJS 和 TypeScript 的任意组合即可。谢谢!

我不知道您是否已经尝试在首选项中将 SystemJS 设置为模块系统:

如果仍然无效,请尝试按照此指南操作:http://www.codeproject.com/Articles/1060262/First-Angular-App-with-TypeScript-and-Visual-Studi 来自 "Setting Up Visual Studio Project".

顺便问一下,VB 2013 是一个非常旧的软件版本,您有什么理由不应该迁移到较新的版本吗?

似乎没有解决这个问题的方法。升级到 VS2015 是解决它的唯一方法。

如果 angular 没有默认导出,您可能需要 --allowSyntheticDefaultImports