georgej georgej - 2 months ago 189
TypeScript Question

Protractor @types throwing a lot of errors

I am using the Angular2 Webpack Starter by AngularClass and I have recently started running into some errors with protractor and Im not sure where they are coming from. When I try to build I get the errors:

Module 'webdriver' has no exported member 'IButton'
,
Module 'webdriver' has no exported member 'IKey'
,
Module 'webdriver' has no exported member 'Locator'
(about 30 times),
and the same message for the members
IErrorCode
,
IType
,
ILevelValues
,
ILevel
, and a few other members.

I also get the errors:

Property 'Error' does not exist on type 'typeof error'


and

Property 'stacktrace' does not exist on type 'typeof webdriver'


Just a whole list of errors and Im not sure why they are popping up now or where they are coming from. Has anyone ran into this or know how to solve this? Thanks!

Answer

Had the same error, change your version of webdriver to this "@types/selenium-webdriver": "2.44.28",.