These red squiggly lines say cannot find module \'angular2/core\'
,cannot find module \'angular2/router\'
,cannot find module \'angula
For ASP.NET 5.0 applications in VS 2015, configuring typescript is a bit challenging.
Until the tooling around typescript improves, you can configure typescript manually:
Step 1: Right-click project, and Unload Project
Step 2: Right-click the unloaded project, and Edit the .xproj file
Step 3: Add a PropertyGroup node, under the Project node:
ES5
None
True
False
CommonJS
False
False
True
True
True
Step 4: Right-click the unloaded project and Reload Project
Step 5: Re-build project
If you are still encountering the error where it cannot find the module, exit visual studio and reload the solution.