<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<TypeScriptRemoveComments>False</TypeScriptRemoveComments> <TypeScriptLib>dom,es2015</TypeScriptLib> <TypeScriptOutFile /> </PropertyGroup> |
{
"compilerOptions": {
//...
"target": "ES2015"
},
//...
}
|
Note:
If ‘tsconfig.json’ exists in your project, then it will use the compiler setting from this configuration file. Otherwise, it will use the specified compiler setting from the project file (.csproj) fiile.
|
Thank you,
This worked for me too.
Hi Felix,
You are Welcome...!
Please get back to us if you need further assistance.
Regards,
Joshna L
I noticed that visual studio these days warns that you are including a package that is dependent on Typescript and suggests to add the `Microsoft.TypeScript.MSBuild` package. However that does not solve the issue.
The above suggested actions do solve this though.
Hi Mark,
Yes as we suggested, you can resolve the issue by adding the required target library either using MS build or using tsconfig.json. Please refer to the below UG link.
https://ej2.syncfusion.com/aspnetmvc/documentation/common/how-to/troubleshoot
References:
https://learn.microsoft.com/en-us/visualstudio/javascript/compile-typescript-code-nuget?view=vs-2022
https://www.typescriptlang.org/docs/handbook/compiler-options-in-msbuild.html
Please get back to us with more details if we misunderstood your query.
Regards,
Bharat Ram H