fikkatra fikkatra - 1 year ago 146
TypeScript Question

SystemJS modules with Visual Studio 2013 and TypeScript

I'm trying to use SystemJS modules in Visual Studio 2013 with TypeScript, but Visual Studio shows errors.

This is my setup:

  • Installed TypeScript Tools for Microsoft Visual Studio 2013

  • Uninstalled lower versions of TypeScript

  • Project file (VS 2013 does not support tsconfig.json):

    <TypeScriptModuleKind >system</TypeScriptModuleKind>

This is what I see:

  • My project compiles successfully

  • In the browser, AngularJs runs successfully

  • But in Visual Studio, I see squiggly lines. Upon hovering it says 'expression statement is not assignment or call':

enter image description here

This issue is related to this question, however, the answer there is 'use VS 2015', which simply is not an option for me.

Is there any way to use SystemJS with TypeScript in Visual Studio 2013? It doesn't have to be ES6-style modules, just any combination of SystemJS and TypeScript will do. Thanks!

Answer Source

It seems that there just isn't a solution for this. Upgrading to VS2015 is the only way to fix it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download