question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Protractor 6 TypeScript issue - compilation issue 6.0.0

See original GitHub issue

Bug 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:open
  • Created 4 years ago
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
cnishinacommented, Mar 29, 2019

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.

0reactions
cnishinacommented, Apr 11, 2019

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. 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found