We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TypeScript Library Upgrade in ASP.NET MVC project

Platform: JavaScript - EJ 2 |
Control: General |
Published Date: January 23, 2019 |
Last Revised Date: March 15, 2019

This documentation explains How to resolve “cannot find name Map” issue in d.ts file.

In JavaScript NuGet package updated latest version, the “cannot find name map” issue occurs due to TypeScript library version. To resolve this, add dom,es2015 library in TypeScript. TypeScript provides msbuild options in Visual Studio for this.

Complier option

MSbuild property

Allowed values

--lib-

TypeScriptLib

Comma-separated list of strings

 

Refer https://www.typescriptlang.org/docs/handbook/compiler-options-in-msbuild.html for more details about msbuild.

You should add the <TypeScriptLib>dom,es2015</TypeScriptLib> tag in application ‘csproj’ file. Refer to the following code snippet. 

 

A simple calendar sample with JavaScript NuGet package has been created and added in the <TypeScriptLib>dom,es2015</TypeScriptLib> in the application’s csproj file.

Sample link: 

http://www.syncfusion.com/downloads/support/directtrac/general/ze/WebApplication1465224522.zip

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon