Recently started with TypeScript with Visual Studio for the AngularJs and landed into a deep problem. The problem was that i was on a blank solution/project with no changes, and still there was a build error. The transition was assumed to be ok, but it didn’t turned out. So here are the steps I did:
- Create a new MVC project in Visual Studio 2015. Added references for Angular using the PM Console.
Command: install-package angularjsPM> install-package angularjs Attempting to gather dependencies information for package 'angularjs.1.5.0' with respect to project 'AngularTestTypeScript', targeting '.NETFramework,Version=v4.5.2' Attempting to resolve dependencies for package 'angularjs.1.5.0' with DependencyBehavior 'Lowest' Resolving actions to install package 'angularjs.1.5.0' Resolved actions to install package 'angularjs.1.5.0' Adding package 'angularjs.1.5.0' to folder 'c:\users\vineetyadav\documents\visual studio 2015\Projects\AngularTestTypeScript\packages' Added package 'angularjs.1.5.0' to folder 'c:\users\vineetyadav\documents\visual studio 2015\Projects\AngularTestTypeScript\packages' Added package 'angularjs.1.5.0' to 'packages.config' Successfully installed 'angularjs 1.5.0' to AngularTestTypeScript
- At this point solution should compile well.
- Install the DefinitrlyTyped typings for TypeScript for angularjs from PM Console.
Command: install-package angularjs.typescript.definitelytypedPM> install-package angularjs.typescript.definitelytyped Attempting to gather dependencies information for package 'angularjs.typescript.definitelytyped.5.4.0' with respect to project 'AngularTestTypeScript', targeting '.NETFramework,Version=v4.5.2' Attempting to resolve dependencies for package 'angularjs.typescript.definitelytyped.5.4.0' with DependencyBehavior 'Lowest' Resolving actions to install package 'angularjs.typescript.definitelytyped.5.4.0' Resolved actions to install package 'angularjs.typescript.definitelytyped.5.4.0' Adding package 'jquery.TypeScript.DefinitelyTyped.0.0.1' to folder 'c:\users\vineetyadav\documents\visual studio 2015\Projects\AngularTestTypeScript\packages' Added package 'jquery.TypeScript.DefinitelyTyped.0.0.1' to folder 'c:\users\vineetyadav\documents\visual studio 2015\Projects\AngularTestTypeScript\packages' Added package 'jquery.TypeScript.DefinitelyTyped.0.0.1' to 'packages.config' Successfully installed 'jquery.TypeScript.DefinitelyTyped 0.0.1' to AngularTestTypeScript Adding package 'angularjs.TypeScript.DefinitelyTyped.5.4.0' to folder 'c:\users\vineetyadav\documents\visual studio 2015\Projects\AngularTestTypeScript\packages' Added package 'angularjs.TypeScript.DefinitelyTyped.5.4.0' to folder 'c:\users\vineetyadav\documents\visual studio 2015\Projects\AngularTestTypeScript\packages' Added package 'angularjs.TypeScript.DefinitelyTyped.5.4.0' to 'packages.config' Successfully installed 'angularjs.TypeScript.DefinitelyTyped 5.4.0' to AngularTestTypeScript
- Once installed, the solution should still compile ok, because as of now there is no TS file in the solution that should be compiled.
- Add a .ts file to the project and add a simple function. This would initiate the TSC to come in picture and compile ts bindings.
function doSum(a, b) { return a + b; }
- Now building the solution gives a whole lot of compiler errors and compiler fails. The main errors are TS2304, TS2411, TS2320, . I get around 482 of such errors. The error loig from visual studio is attached below:
TS2411 Property 'queue' of type '{ (queueName?: string): any[]; (queueName: string, newQueueOrCallback: any): JQuery; (newQueueOrC...' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Cannot find name 'Promise'. TS2304 Cannot find name 'Promise'. Build: Property 'find' of type '{ (selector: string): IAugmentedJQuery; (element: any): IAugmentedJQuery; (obj: JQuery): IAugment...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'find' of type '{ (selector: string): IAugmentedJQuery; (element: any): IAugmentedJQuery; (obj: JQuery): IAugment...' is not assignable to string index type 'HTMLElement'. Build: Property 'controller' of type '{ (): any; (name: string): any; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'controller' of type '{ (): any; (name: string): any; }' is not assignable to string index type 'HTMLElement'. Build: Property 'injector' of type '() => any' is not assignable to string index type 'HTMLElement'. TS2411 Property 'injector' of type '() => any' is not assignable to string index type 'HTMLElement'. Build: Property 'scope' of type '() => IScope' is not assignable to string index type 'HTMLElement'. TS2411 Property 'scope' of type '() => IScope' is not assignable to string index type 'HTMLElement'. Build: Property 'isolateScope' of type '() => IScope' is not assignable to string index type 'HTMLElement'. TS2411 Property 'isolateScope' of type '() => IScope' is not assignable to string index type 'HTMLElement'. Build: Property 'inheritedData' of type '{ (key: string, value: any): JQuery; (obj: { [key: string]: any; }): JQuery; (key?: string): any; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'inheritedData' of type '{ (key: string, value: any): JQuery; (obj: { [key: string]: any; }): JQuery; (key?: string): any; }' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Interface 'JQueryEventObject' cannot simultaneously extend types 'BaseJQueryEventObject' and 'JQueryInputEventObject'. Build: Interface 'JQueryEventObject' cannot simultaneously extend types 'BaseJQueryEventObject' and 'JQueryKeyEventObject'. Build: Interface 'JQueryEventObject' cannot simultaneously extend types 'BaseJQueryEventObject' and 'JQueryMouseEventObject'. TS2320 Interface 'JQueryEventObject' cannot simultaneously extend types 'BaseJQueryEventObject' and 'JQueryInputEventObject'. AngularTestTypeScript c:\Users\vineetyadav\documents\visual studio 2015\Projects\AngularTestTypeScript\AngularTestTypeScript\Scripts\typings\jquery\jquery.d.ts TS2320 Interface 'JQueryEventObject' cannot simultaneously extend types 'BaseJQueryEventObject' and 'JQueryKeyEventObject'. AngularTestTypeScript c:\Users\vineetyadav\documents\visual studio 2015\Projects\AngularTestTypeScript\AngularTestTypeScript\Scripts\typings\jquery\jquery.d.ts TS2320 Interface 'JQueryEventObject' cannot simultaneously extend types 'BaseJQueryEventObject' and 'JQueryMouseEventObject'. AngularTestTypeScript c:\Users\vineetyadav\documents\visual studio 2015\Projects\AngularTestTypeScript\AngularTestTypeScript\Scripts\typings\jquery\jquery.d.ts Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'ajaxComplete' of type '(handler: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'ajaxComplete' of type '(handler: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'ajaxError' of type '(handler: (event: any, jqXHR: any, settings: any, exception: any) => any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'ajaxError' of type '(handler: (event: any, jqXHR: any, settings: any, exception: any) => any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'ajaxSend' of type '(handler: (event: any, jqXHR: any, settings: any, exception: any) => any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'ajaxSend' of type '(handler: (event: any, jqXHR: any, settings: any, exception: any) => any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'ajaxStart' of type '(handler: () => any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'ajaxStart' of type '(handler: () => any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'ajaxStop' of type '(handler: () => any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'ajaxStop' of type '(handler: () => any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'ajaxSuccess' of type '(handler: (event: any, jqXHR: any, settings: any, exception: any) => any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'ajaxSuccess' of type '(handler: (event: any, jqXHR: any, settings: any, exception: any) => any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'load' of type '{ (url: string, data?: any, complete?: any): JQuery; (eventData?: any, handler?: (eventObject: JQ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'load' of type '{ (url: string, data?: any, complete?: any): JQuery; (eventData?: any, handler?: (eventObject: JQ...' is not assignable to string index type 'HTMLElement'. Build: Property 'serialize' of type '() => string' is not assignable to string index type 'HTMLElement'. TS2411 Property 'serialize' of type '() => string' is not assignable to string index type 'HTMLElement'. Build: Property 'serializeArray' of type '() => any[]' is not assignable to string index type 'HTMLElement'. TS2411 Property 'serializeArray' of type '() => any[]' is not assignable to string index type 'HTMLElement'. Build: Property 'addClass' of type '{ (classNames: string): JQuery; (func: (index: any, currentClass: any) => string): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'addClass' of type '{ (classNames: string): JQuery; (func: (index: any, currentClass: any) => string): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'addBack' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'addBack' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'attr' of type '{ (attributeName: string): string; (attributeName: string, value: any): JQuery; (map: { [key: str...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'attr' of type '{ (attributeName: string): string; (attributeName: string, value: any): JQuery; (map: { [key: str...' is not assignable to string index type 'HTMLElement'. Build: Property 'hasClass' of type '(className: string) => any' is not assignable to string index type 'HTMLElement'. TS2411 Property 'hasClass' of type '(className: string) => any' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'html' of type '{ (): string; (htmlString: string): JQuery; (htmlContent: (index: number, oldhtml: string) => str...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'html' of type '{ (): string; (htmlString: string): JQuery; (htmlContent: (index: number, oldhtml: string) => str...' is not assignable to string index type 'HTMLElement'. Build: Property 'prop' of type '{ (propertyName: string): string; (propertyName: string, value: any): JQuery; (map: any): JQuery;...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'prop' of type '{ (propertyName: string): string; (propertyName: string, value: any): JQuery; (map: any): JQuery;...' is not assignable to string index type 'HTMLElement'. Build: Property 'removeAttr' of type '(attributeName: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'removeAttr' of type '(attributeName: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'removeClass' of type '{ (className?: any): JQuery; (func: (index: any, cls: any) => any): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'removeClass' of type '{ (className?: any): JQuery; (func: (index: any, cls: any) => any): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'removeProp' of type '(propertyName: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'removeProp' of type '(propertyName: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'toggleClass' of type '{ (className: any, swtch?: any): JQuery; (swtch?: any): JQuery; (func: (index: any, cls: any, swt...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'toggleClass' of type '{ (className: any, swtch?: any): JQuery; (swtch?: any): JQuery; (func: (index: any, cls: any, swt...' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'val' of type '{ (): any; (value: string[]): JQuery; (value: string): JQuery; (value: number): JQuery; (func: (i...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'val' of type '{ (): any; (value: string[]): JQuery; (value: string): JQuery; (value: number): JQuery; (func: (i...' is not assignable to string index type 'HTMLElement'. Build: Property 'css' of type '{ (propertyName: string): string; (propertyNames: string[]): string; (properties: any): JQuery; (...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'css' of type '{ (propertyName: string): string; (propertyNames: string[]): string; (properties: any): JQuery; (...' is not assignable to string index type 'HTMLElement'. Build: Property 'height' of type '{ (): number; (value: number): JQuery; (value: string): JQuery; (func: (index: any, height: any) ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'height' of type '{ (): number; (value: number): JQuery; (value: string): JQuery; (func: (index: any, height: any) ...' is not assignable to string index type 'HTMLElement'. Build: Property 'innerHeight' of type '() => number' is not assignable to string index type 'HTMLElement'. TS2411 Property 'innerHeight' of type '() => number' is not assignable to string index type 'HTMLElement'. Build: Property 'innerWidth' of type '() => number' is not assignable to string index type 'HTMLElement'. TS2411 Property 'innerWidth' of type '() => number' is not assignable to string index type 'HTMLElement'. Build: Property 'offset' of type '{ (): { left: number; top: number; }; (coordinates: any): JQuery; (func: (index: any, coords: any...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'offset' of type '{ (): { left: number; top: number; }; (coordinates: any): JQuery; (func: (index: any, coords: any...' is not assignable to string index type 'HTMLElement'. Build: Property 'outerHeight' of type '(includeMargin?: any) => number' is not assignable to string index type 'HTMLElement'. TS2411 Property 'outerHeight' of type '(includeMargin?: any) => number' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'outerWidth' of type '(includeMargin?: any) => number' is not assignable to string index type 'HTMLElement'. TS2411 Property 'outerWidth' of type '(includeMargin?: any) => number' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'position' of type '() => { top: number; left: number; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'position' of type '() => { top: number; left: number; }' is not assignable to string index type 'HTMLElement'. Build: Property 'scrollLeft' of type '{ (): number; (value: number): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'scrollLeft' of type '{ (): number; (value: number): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'scrollTop' of type '{ (): number; (value: number): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'scrollTop' of type '{ (): number; (value: number): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'width' of type '{ (): number; (value: number): JQuery; (value: string): JQuery; (func: (index: any, height: any) ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'width' of type '{ (): number; (value: number): JQuery; (value: string): JQuery; (func: (index: any, height: any) ...' is not assignable to string index type 'HTMLElement'. Build: Property 'clearQueue' of type '(queueName?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'clearQueue' of type '(queueName?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'data' of type '{ (key: string, value: any): JQuery; (obj: { [key: string]: any; }): JQuery; (key?: string): any; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'data' of type '{ (key: string, value: any): JQuery; (obj: { [key: string]: any; }): JQuery; (key?: string): any; }' is not assignable to string index type 'HTMLElement'. Build: Property 'dequeue' of type '(queueName?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'dequeue' of type '(queueName?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'removeData' of type '(nameOrList?: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'removeData' of type '(nameOrList?: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'promise' of type '(type?: any, target?: any) => JQueryPromise' is not assignable to string index type 'HTMLElement'. TS2411 Property 'promise' of type '(type?: any, target?: any) => JQueryPromise' is not assignable to string index type 'HTMLElement'. Build: Property 'animate' of type '{ (properties: any, duration?: any, complete?: Function): JQuery; (properties: any, duration?: an...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'animate' of type '{ (properties: any, duration?: any, complete?: Function): JQuery; (properties: any, duration?: an...' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'delay' of type '(duration: number, queueName?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'delay' of type '(duration: number, queueName?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'fadeIn' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'fadeIn' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. Build: Property 'fadeOut' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'fadeOut' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. Build: Property 'fadeTo' of type '{ (duration: any, opacity: number, callback?: any): JQuery; (duration: any, opacity: number, easi...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'fadeTo' of type '{ (duration: any, opacity: number, callback?: any): JQuery; (duration: any, opacity: number, easi...' is not assignable to string index type 'HTMLElement'. Build: Property 'fadeToggle' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'fadeToggle' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. Build: Property 'finish' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'finish' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'hide' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'hide' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. Build: Property 'show' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'show' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. Build: Property 'slideDown' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'slideDown' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. Build: Property 'slideToggle' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'slideToggle' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. Build: Property 'slideUp' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'slideUp' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. Build: Property 'stop' of type '{ (clearQueue?: any, jumpToEnd?: any): JQuery; (queue?: any, clearQueue?: any, jumpToEnd?: any): ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'stop' of type '{ (clearQueue?: any, jumpToEnd?: any): JQuery; (queue?: any, clearQueue?: any, jumpToEnd?: any): ...' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'toggle' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'toggle' of type '{ (duration?: any, callback?: any): JQuery; (duration?: any, easing?: string, callback?: any): JQ...' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'bind' of type '{ (eventType: string, eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'bind' of type '{ (eventType: string, eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery...' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'blur' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'blur' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. Build: Property 'change' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'change' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. Build: Property 'click' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'click' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. Build: Property 'dblclick' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'dblclick' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. Build: Property 'delegate' of type '(selector: any, eventType: string, handler: (eventObject: JQueryEventObject) => any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'delegate' of type '(selector: any, eventType: string, handler: (eventObject: JQueryEventObject) => any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'focus' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'focus' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. Build: Property 'focusin' of type '{ (eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventObj...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'focusin' of type '{ (eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventObj...' is not assignable to string index type 'HTMLElement'. Build: Property 'focusout' of type '{ (eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventObj...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'focusout' of type '{ (eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventObj...' is not assignable to string index type 'HTMLElement'. Build: Property 'hover' of type '{ (handlerIn: (eventObject: JQueryEventObject) => any, handlerOut: (eventObject: JQueryEventObjec...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'hover' of type '{ (handlerIn: (eventObject: JQueryEventObject) => any, handlerOut: (eventObject: JQueryEventObjec...' is not assignable to string index type 'HTMLElement'. Build: Property 'keydown' of type '{ (eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; (handler: (eve...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'keydown' of type '{ (eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; (handler: (eve...' is not assignable to string index type 'HTMLElement'. Build: Property 'keypress' of type '{ (eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; (handler: (eve...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'keypress' of type '{ (eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; (handler: (eve...' is not assignable to string index type 'HTMLElement'. Build: Property 'keyup' of type '{ (eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; (handler: (eve...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'keyup' of type '{ (eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; (handler: (eve...' is not assignable to string index type 'HTMLElement'. Build: Property 'mousedown' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'mousedown' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. Build: Property 'mouseevent' of type '{ (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (handler: (eve...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'mouseevent' of type '{ (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (handler: (eve...' is not assignable to string index type 'HTMLElement'. Build: Property 'mouseenter' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'mouseenter' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. Build: Property 'mouseleave' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'mouseleave' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. Build: Property 'mousemove' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'mousemove' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. Build: Property 'mouseout' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'mouseout' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. Build: Property 'mouseover' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'mouseover' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. Build: Property 'mouseup' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'mouseup' of type '{ (): JQuery; (eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; (h...' is not assignable to string index type 'HTMLElement'. Build: Property 'off' of type '{ (events?: string, selector?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'off' of type '{ (events?: string, selector?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (...' is not assignable to string index type 'HTMLElement'. Build: Property 'on' of type '{ (events: string, selector?: any, data?: any, handler?: (eventObject: JQueryEventObject) => any)...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'on' of type '{ (events: string, selector?: any, data?: any, handler?: (eventObject: JQueryEventObject) => any)...' is not assignable to string index type 'HTMLElement'. Build: Property 'one' of type '{ (events: string, selector?: any, data?: any, handler?: (eventObject: JQueryEventObject) => any)...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'one' of type '{ (events: string, selector?: any, data?: any, handler?: (eventObject: JQueryEventObject) => any)...' is not assignable to string index type 'HTMLElement'. Build: Property 'ready' of type '(handler: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'ready' of type '(handler: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'resize' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'resize' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. Build: Property 'scroll' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'scroll' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. Build: Property 'select' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'select' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. Build: Property 'submit' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'submit' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. Build: Property 'trigger' of type '{ (eventType: string, ...extraParameters: any[]): JQuery; (event: JQueryEventObject): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'trigger' of type '{ (eventType: string, ...extraParameters: any[]): JQuery; (event: JQueryEventObject): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'triggerHandler' of type '(eventType: string, ...extraParameters: any[]) => Object' is not assignable to string index type 'HTMLElement'. TS2411 Property 'triggerHandler' of type '(eventType: string, ...extraParameters: any[]) => Object' is not assignable to string index type 'HTMLElement'. Build: Property 'unbind' of type '{ (eventType?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; (eventType: st...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'unbind' of type '{ (eventType?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; (eventType: st...' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'undelegate' of type '{ (): JQuery; (selector: any, eventType: string, handler?: (eventObject: JQueryEventObject) => an...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'undelegate' of type '{ (): JQuery; (selector: any, eventType: string, handler?: (eventObject: JQueryEventObject) => an...' is not assignable to string index type 'HTMLElement'. Build: Property 'unload' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'unload' of type '{ (eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; (handler: (eventO...' is not assignable to string index type 'HTMLElement'. Build: Property 'context' of type 'Element' is not assignable to string index type 'HTMLElement'. TS2411 Property 'context' of type 'Element' is not assignable to string index type 'HTMLElement'. Build: Property 'jquery' of type 'string' is not assignable to string index type 'HTMLElement'. TS2411 Property 'jquery' of type 'string' is not assignable to string index type 'HTMLElement'. Build: Property 'error' of type '{ (handler: (eventObject: JQueryEventObject) => any): JQuery; (eventData: any, handler: (eventObj...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'error' of type '{ (handler: (eventObject: JQueryEventObject) => any): JQuery; (eventData: any, handler: (eventObj...' is not assignable to string index type 'HTMLElement'. Build: Property 'pushStack' of type '{ (elements: any[]): JQuery; (elements: any[], name: any, arguments: any): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'pushStack' of type '{ (elements: any[]): JQuery; (elements: any[], name: any, arguments: any): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'after' of type '{ (...content: any[]): JQuery; (func: (index: any) => any): any; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'after' of type '{ (...content: any[]): JQuery; (func: (index: any) => any): any; }' is not assignable to string index type 'HTMLElement'. Build: Property 'append' of type '{ (...content: any[]): JQuery; (func: (index: any, html: any) => any): any; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'append' of type '{ (...content: any[]): JQuery; (func: (index: any, html: any) => any): any; }' is not assignable to string index type 'HTMLElement'. Build: Property 'appendTo' of type '(target: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'appendTo' of type '(target: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'before' of type '{ (...content: any[]): JQuery; (func: (index: any) => any): any; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'before' of type '{ (...content: any[]): JQuery; (func: (index: any) => any): any; }' is not assignable to string index type 'HTMLElement'. Build: Property 'clone' of type '(withDataAndEvents?: any, deepWithDataAndEvents?: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'clone' of type '(withDataAndEvents?: any, deepWithDataAndEvents?: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'detach' of type '(selector?: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'detach' of type '(selector?: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'empty' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'empty' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'insertAfter' of type '(target: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'insertAfter' of type '(target: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'insertBefore' of type '(target: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'insertBefore' of type '(target: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'prepend' of type '{ (...content: any[]): JQuery; (func: (index: any, html: any) => any): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'prepend' of type '{ (...content: any[]): JQuery; (func: (index: any, html: any) => any): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'prependTo' of type '(target: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'prependTo' of type '(target: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'remove' of type '(selector?: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'remove' of type '(selector?: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'replaceAll' of type '(target: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'replaceAll' of type '(target: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'replaceWith' of type '(func: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'replaceWith' of type '(func: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'text' of type '{ (): string; (textString: any): JQuery; (textString: (index: number, text: string) => string): J...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'text' of type '{ (): string; (textString: any): JQuery; (textString: (index: number, text: string) => string): J...' is not assignable to string index type 'HTMLElement'. Build: Property 'toArray' of type '() => any[]' is not assignable to string index type 'HTMLElement'. TS2411 Property 'toArray' of type '() => any[]' is not assignable to string index type 'HTMLElement'. Build: Property 'unwrap' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'unwrap' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'wrap' of type '{ (wrappingElement: any): JQuery; (func: (index: any) => any): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'wrap' of type '{ (wrappingElement: any): JQuery; (func: (index: any) => any): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'wrapAll' of type '(wrappingElement: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'wrapAll' of type '(wrappingElement: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'wrapInner' of type '{ (wrappingElement: any): JQuery; (func: (index: any) => any): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'wrapInner' of type '{ (wrappingElement: any): JQuery; (func: (index: any) => any): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'each' of type '(func: (index: any, elem: Element) => any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'each' of type '(func: (index: any, elem: Element) => any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'get' of type '(index?: number) => any' is not assignable to string index type 'HTMLElement'. TS2411 Property 'get' of type '(index?: number) => any' is not assignable to string index type 'HTMLElement'. Build: Property 'index' of type '{ (): number; (selector: string): number; (element: any): number; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'index' of type '{ (): number; (selector: string): number; (element: any): number; }' is not assignable to string index type 'HTMLElement'. Build: Property 'length' of type 'number' is not assignable to string index type 'HTMLElement'. TS2411 Property 'length' of type 'number' is not assignable to string index type 'HTMLElement'. Build: Property 'selector' of type 'string' is not assignable to string index type 'HTMLElement'. TS2411 Property 'selector' of type 'string' is not assignable to string index type 'HTMLElement'. Build: Property 'add' of type '{ (selector: string, context?: any): JQuery; (...elements: any[]): JQuery; (html: string): JQuery...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'add' of type '{ (selector: string, context?: any): JQuery; (...elements: any[]): JQuery; (html: string): JQuery...' is not assignable to string index type 'HTMLElement'. Build: Property 'children' of type '(selector?: any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'children' of type '(selector?: any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'closest' of type '{ (selector: string): JQuery; (selector: string, context?: Element): JQuery; (obj: JQuery): JQuer...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'closest' of type '{ (selector: string): JQuery; (selector: string, context?: Element): JQuery; (obj: JQuery): JQuer...' is not assignable to string index type 'HTMLElement'. Build: Property 'contents' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'contents' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'end' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'end' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'eq' of type '(index: number) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'eq' of type '(index: number) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'filter' of type '{ (selector: string): JQuery; (func: (index: any) => any): JQuery; (element: any): JQuery; (obj: ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'filter' of type '{ (selector: string): JQuery; (func: (index: any) => any): JQuery; (element: any): JQuery; (obj: ...' is not assignable to string index type 'HTMLElement'. Build: Property 'find' of type '{ (selector: string): JQuery; (element: any): JQuery; (obj: JQuery): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'find' of type '{ (selector: string): JQuery; (element: any): JQuery; (obj: JQuery): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'first' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'first' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'has' of type '{ (selector: string): JQuery; (contained: Element): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'has' of type '{ (selector: string): JQuery; (contained: Element): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'is' of type '{ (selector: string): any; (func: (index: any) => any): any; (element: any): any; (obj: JQuery): ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'is' of type '{ (selector: string): any; (func: (index: any) => any): any; (element: any): any; (obj: JQuery): ...' is not assignable to string index type 'HTMLElement'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Cannot find name 'bool'. TS2304 Cannot find name 'bool'. Build: Property 'last' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'last' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'map' of type '(callback: (index: any, domElement: Element) => any) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'map' of type '(callback: (index: any, domElement: Element) => any) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'next' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'next' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'nextAll' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'nextAll' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'nextUntil' of type '{ (selector?: string, filter?: string): JQuery; (element?: Element, filter?: string): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'nextUntil' of type '{ (selector?: string, filter?: string): JQuery; (element?: Element, filter?: string): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'not' of type '{ (selector: string): JQuery; (func: (index: any) => any): JQuery; (element: any): JQuery; (obj: ...' is not assignable to string index type 'HTMLElement'. TS2411 Property 'not' of type '{ (selector: string): JQuery; (func: (index: any) => any): JQuery; (element: any): JQuery; (obj: ...' is not assignable to string index type 'HTMLElement'. Build: Property 'offsetParent' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'offsetParent' of type '() => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'parent' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'parent' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'parents' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'parents' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'parentsUntil' of type '{ (selector?: string, filter?: string): JQuery; (element?: Element, filter?: string): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'parentsUntil' of type '{ (selector?: string, filter?: string): JQuery; (element?: Element, filter?: string): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'prev' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'prev' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'prevAll' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'prevAll' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'prevUntil' of type '{ (selector?: string, filter?: string): JQuery; (element?: Element, filter?: string): JQuery; }' is not assignable to string index type 'HTMLElement'. TS2411 Property 'prevUntil' of type '{ (selector?: string, filter?: string): JQuery; (element?: Element, filter?: string): JQuery; }' is not assignable to string index type 'HTMLElement'. Build: Property 'siblings' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'siblings' of type '(selector?: string) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'slice' of type '(start: number, end?: number) => JQuery' is not assignable to string index type 'HTMLElement'. TS2411 Property 'slice' of type '(start: number, end?: number) => JQuery' is not assignable to string index type 'HTMLElement'. Build: Property 'queue' of type '{ (queueName?: string): any[]; (queueName: string, newQueueOrCallback: any): JQuery; (newQueueOrC...' is not assignable to string index type 'HTMLElement'.
- This is off course bad and was a blocker for me, that hold me for a while. I did try well on google and stackoverflow, but all seemed to be out of context and was not much helpful, untill i pulled up my weapons to search the miscreant 🙂
The Problem and solution……
The problem with the solution is very simple. When you pulled the DefeinitelyTyped typings for angular, it automatically pulled the jquery Typings. The root cause is that the version of the typings for jquery imported was 0.0.1. I think this is because the dependency mentioned in the Angularjs.TypeScript.DefinitelyTyped package is wrongly mentioned.
To Resolve the solution just put the following command in PM Console to get the latest version of typescripts for jquery.
Command: Update-Package jquery.TypeScript.DefinitelyTyped
This shall update the typings (currently 3.0.3). Now build the solution. You will notice that most of the errors are gone except for a few. The error that is left is:
TS2304: Cannot find name ‘Promise’.
The reason for this is apparently that the default build version of ECMA script is version 5, which does not contain the definition for the ‘Promise’. The quickest solution is update the compile version of ECMAScriptVersion to 6. To do this, goto project settings –> TypeScript Build–> ECMA Version ==> ECMASCript 6.
Now Rebuild the solution and it should build successfully.
Thx very much sir.
Worked.