Subsequent variable declarations must have the same type. Variable '$' must be of type 'JQueryStatic', but here has type 'cssSelectorHelper' Subsequent variable declarations must have the same type. Variable '$' must be of type 'JQueryStatic', but here has type 'cssSelectorHelper' angular angular

Subsequent variable declarations must have the same type. Variable '$' must be of type 'JQueryStatic', but here has type 'cssSelectorHelper'


in the d.ts file replace

declare module "jquery" {    export = $;}declare var jQuery: JQueryStatic;declare var $: JQueryStatic;

with

declare module "jquery" {    export = jQuery;}declare var jQuery: JQueryStatic;


As a work around, comment out JQueryStatic and replace with cssSelectorHelper at the bottom of angular-protractor.d.ts

declare var browser: protractor.IBrowser;declare var by: protractor.IProtractorLocatorStrategy;declare var By: protractor.IProtractorLocatorStrategy;declare var element: protractor.Element;// declare var $: JQueryStatic;declare var $: cssSelectorHelper;declare var $$: cssArraySelectorHelper;