Protractor 6 TypeScript issue - compilation issue 6.0.0
See original GitHub issueBug report
- Node Version:
11.12.0
- Protractor Version:
6.0.0
- Operating System and Version
Windows 10
.../protractor/built/index.d.ts(7,10): error TS2305: Module '"selenium-webdriver"' has no exported member 'Actions'.
protractor/built/index.d.ts(22,46): error TS7016: Could not find a declaration file for module 'selenium-webdriver/lib/command'. '.../selenium-webdriver/lib/command.js' implicitly has an 'any' type.
Try `npm install @types/selenium-webdriver` if it exists or add a new declaration (.d.ts) file containing `declare module 'selenium-webdriver/lib/command';`
.../protractor/built/ptor.d.ts(5,26): error TS7016: Could not find a declaration file for module 'selenium-webdriver/lib/command'. '.../selenium-webdriver/lib/command.js' implicitly has an 'any' type.
Try `npm install @types/selenium-webdriver` if it exists or add a new declaration (.d.ts) file containing `declare module 'selenium-webdriver/lib/command';`
.../protractor/built/ptor.d.ts(25,31): error TS2339: Property 'Actions' does not exist on type 'typeof import("selenium-webdriver")'.
.../protractor/built/ptor.d.ts(33,17): error TS2307: Cannot find module './selenium-webdriver/lib/input'.
Issue Analytics
- State:
- Created 4 years ago
- Comments:23 (11 by maintainers)
Top Results From Across the Web
cannot find module 'protractor' or its corresponding type ...
Basically, the compiler can't find the endsWith() method for the type string. This same error is also returned by the typescript parser that...
Read more >How to resolve compile errors during upgrade of Angular ...
So I tried upgrading Typescript to 3.2 and then running “ng serve”, but it gives me this error: ERROR in The Angular Compiler...
Read more >Migration Guide | Cypress Documentation
Migrating to Cypress 12.0 This guide details the changes and how to change your code to migrate to Cypress version 12.0.
Read more >protractor-cucumber-framework/protractor-cucumber-framework
do we need to write world.js if we use protractor-cucumber-framework ? getting timeout error on steps execution any solution exist to this ?...
Read more >Strange error after Compiling - Ionic 5 Angular 12
Hey Guys, this is my first post on here. I'm about to get crazy after 2 days of experimenting and trying to find...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Root issue here is that I tried to roll out my own typings with the intent of releasing Protractor 6 without releasing types to DefinitelyTyped. After some experimentation, even if the types are in the node_modules/protractor/built/lib/selenium-webdriver directory with the tsconfig pointing to these files as “selenium-webdriver” typings, it still does not work.
I’ll have a PR for DefinitelyTyped/selenium-webdriver ready to go tomorrow and will also address some of these other issues.
I think there’s a lot of context about Protractor 6 and the compilation issue. I’m going to lock this conversation so I can focus on fixing stuff. 😄