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!
Had the same error, change your version of webdriver 2.44.28
.
"@types/selenium-webdriver": "2.44.28",
and than npm install
or
npm i --save-dev @types/[email protected]
Updating selenium-webdriver to 2.44.28 didn't solve issue for me, but to 2.44.29 - do it)
npm i --save @types/[email protected]
Working with this environment:
node -v 5.12.0 npm -v 3.10.8
@types/protractor is now a stub, as the package provides its own type definitions. I got rid of all of these errors by running
npm uninstall --save @types/protractor
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With