ASP.NET core project: how to save typescript from compilation

I am trying to integrate an existing Angular 2 application into an existing ASP.NET Core project in Visual Studio. Both projects work independently, but when I try to compile an ASP.NET Core project in Visual Studio, I get a bunch of typescript compilation errors related to the files in the folder node_modules.

enter image description here

Like me:

  • Save typescript from compilation altogether
  • Do not let the compiler look at anything in node_modules

I can make this work by moving the folder node_modulesto the root directory of the project, but this will require a complete rebuild of the project's original dependencies and the creation of files, and I would rather avoid this.

+4
1

-1. typescript, (.xproj). :

<PropertyGroup>
    <TypeScriptCompileBlocked>True</TypeScriptCompileBlocked>
</PropertyGroup>   

-2-. - node_modules - tsconfig:

"exclude":[
  "node_modules"
]

* node_modules tsconfig.json

+8

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


All Articles