Answered by:
VS-2019 Build error in jquery-3.3.d.ts

Question
-
User-147238865 posted
Hi All,
Recently i have installed VS2019 and took the project from my repository which is already running in my other system using VS2017.
But when i build the same solution in VS2019 i am getting below build error.
Error : Build:Type '"button" | "view" | "altKey" | "bubbles" | "cancelable" | "changedTouches" | "ctrlKey" | "detail" | "eventPhase" | "metaKey" | "pageX" | "pageY" | "shiftKey" | "char" | "charCode" | ... 13 more ... | "touches"' does not satisfy the constraint '"repeat" | "button" | "code" | "view" | "altKey" | "bubbles" | "cancelable" | "changedTouches" | "ctrlKey" | "detail" | "eventPhase" | "metaKey" | "pageX" | "pageY" | "shiftKey" | ... 55 more ... | "DOM_KEY_LOCATION_STANDARD"'. In jquery-3.3.d.ts
Anyone has any idea why i am getting this build error and how to resolve this.
Thanks,
SK.
Friday, October 25, 2019 12:03 PM
Answers
-
User665608656 posted
Hi Suryakant,
Error : Build:Type '"button" | "view" | "altKey" | "bubbles" | "cancelable" | "changedTouches" | "ctrlKey" | "detail" | "eventPhase" | "metaKey" | "pageX" | "pageY" | "shiftKey" | "char" | "charCode" | ... 13 more ... | "touches"' does not satisfy the constraint '"repeat" | "button" | "code" | "view" | "altKey" | "bubbles" | "cancelable" | "changedTouches" | "ctrlKey" | "detail" | "eventPhase" | "metaKey" | "pageX" | "pageY" | "shiftKey" | ... 55 more ... | "DOM_KEY_LOCATION_STANDARD"'. In jquery-3.3.d.tsAccording to your the error message, this is usually related to the version of query.
You can try following steps to fix your issue:
rm -rf ./node_modules/@types/jquery npm i @types/jquery@3.3.6 npx tsc
You can also refer to these links:
[@types/jquery] 'toElement' causes VS build failure
Best Regards,
YongQing.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, October 28, 2019 2:27 AM
All replies
-
User665608656 posted
Hi Suryakant,
Error : Build:Type '"button" | "view" | "altKey" | "bubbles" | "cancelable" | "changedTouches" | "ctrlKey" | "detail" | "eventPhase" | "metaKey" | "pageX" | "pageY" | "shiftKey" | "char" | "charCode" | ... 13 more ... | "touches"' does not satisfy the constraint '"repeat" | "button" | "code" | "view" | "altKey" | "bubbles" | "cancelable" | "changedTouches" | "ctrlKey" | "detail" | "eventPhase" | "metaKey" | "pageX" | "pageY" | "shiftKey" | ... 55 more ... | "DOM_KEY_LOCATION_STANDARD"'. In jquery-3.3.d.tsAccording to your the error message, this is usually related to the version of query.
You can try following steps to fix your issue:
rm -rf ./node_modules/@types/jquery npm i @types/jquery@3.3.6 npx tsc
You can also refer to these links:
[@types/jquery] 'toElement' causes VS build failure
Best Regards,
YongQing.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, October 28, 2019 2:27 AM -
User-147238865 posted
You can try following steps to fix your issue:
rm -rf ./node_modules/@types/jquery npm i @types/jquery@3.3.6 npx tsc
Works for me, Issue got resolved.
Thanks lot Yongqing Yu.
Regards,
Suryakant.
Monday, October 28, 2019 11:09 AM -
User-277686383 posted
Visual Studio build error TS2344 in jquery.d.ts
-
Install Nuget packages Microsoft.TypeScript.MSBuild version 3.5.3 - must be version 3.5.3 or less
-
Visual Studio Marketplace:
- install TypeScript 3.5.3 for Visual Studio
- updates the csproj file, and changes the following settings
<PropertyGroup> <TargetFramework>...</TargetFramework> <AssemblyName>...</AssemblyName> <TypeScriptToolsVersion>3.5</TypeScriptToolsVersion> </PropertyGroup>
Saturday, November 9, 2019 10:23 AM -