SystemJS Modules with Visual Studio 2013 and TypeScript

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

This is my setting :

  • Installed TypeScript Tools for Microsoft Visual Studio 2013 1.8.5.0
  • Deleted TypeScript Versions
  • Project file (VS 2013 does not support tsconfig.json):

    <TypeScriptToolsVersion>1.8</TypeScriptToolsVersion> <TypeScriptModuleKind >system</TypeScriptModuleKind> <TypeScriptTarget>es5</TypeScriptTarget>

Here is what I am looking at :

  • My project compiles successfully
  • AngularJs Browser Successfully Running
  • But in Visual Studio I see squiggly lines. After freezing, he says that the expression of the expression is not an assignment or call:

enter image description here

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

Can I use SystemJS with TypeScript in Visual Studio 2013? It should not be ES6-style modules, only any combination of SystemJS and TypeScript will work. Thanks!

+5
source share
3 answers

There seems to be no solution for this. Upgrading to VS2015 is the only way to fix it.

+2
source

I do not know if you tried to install SystemJS as a modular system in the settings: pref vb

If everything still doesn't work, try following this guide: http://www.codeproject.com/Articles/1060262/First-Angular-App-with-TypeScript-and-Visual-Studi from "Setting Up Visual Studio Project".

By the way, VB 2013 is a very old version of software, is there a reason why you should not upgrade to a new version?

+2
source

You may need --allowSyntheticDefaultImports if angular does not have a default export.

0
source

Source: https://habr.com/ru/post/1246712/


All Articles