I developed an ASP.Net MVC web application and It's almost completed. After That, I updated Bootstrap through NuGet package manager to Bootstrap latest stable version 4.3.1 Update was successfully completed. But after the migration following errors are occurred.

Error Build:Cannot find name 'Record'.
Error Build:Cannot find name 'undefined'.

To solve that I installed TypeScript for Visual Studio 2015. Then the above error solved and the following error occurred.

Severity Code Description Project File Line Suppression State Error The build task could not find node.exe which is required to run the TypeScript compiler. Please install Node and ensure that the system path contains its location. ABH.SW.HotelManagement

How can I solve this? I tried to google it for the past 2 days but I wasn't able to find any solution

1 Answers

0
user3682728 On

I think Bootstrap 4.3.1 , Typescript , VS2015 has some issues with each other. [e.g. Compilation error from Angular and typescript in VS 2015 MVC project ]

My scenario in my project got this error

Error The build task could not find node.exe which is required to run the TypeScript compiler. Please install Node and ensure that the system path contains its location. ACC_Cor...

I'm using VS2017 while other team member that has problem using VS2015 with TypeScript Tools for Microsoft Visual Studio 2015 3.2.2.0 installed

He told me that after map project from source control there is and alert message of something like his typescript version is newer. So after some googling I think you should look in to this link for more information https://github.com/Microsoft/TypeScript/issues/17136

VS2015 - Change TypeScript Version

How to run TypeScript in Visual Studio 2015 without require() or requireJS

tldr;

For Vs2015 + Bootstrap 4.3.1 I solved my issue by

  1. Check project property enter image description here
  2. Uninstall Typescript
  3. Install Typescript version 3.0 https://www.microsoft.com/en-us/download/details.aspx?id=48593

enter image description here