Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property runner does not exist on type Cypress #2389

Closed
AlbertoMontalesi opened this issue Aug 23, 2018 · 4 comments
Closed

Property runner does not exist on type Cypress #2389

AlbertoMontalesi opened this issue Aug 23, 2018 · 4 comments

Comments

@AlbertoMontalesi
Copy link

 ` Cypress.runner.stop()`

This causes an error in typescript.

@bahmutov
Copy link
Contributor

We have not documented internal properties inside Cypress.runner object, maybe in the future we will do this when the internal APIs solidify.

screen shot 2018-08-28 at 12 39 38 pm

For now, we advise to cast the object as any or whatever type you use internally.

@FaziRaj
Copy link

FaziRaj commented Nov 19, 2020

Hello,
@bahmutov did you get the solution for the Cypress.runner as it always says "Property 'runner' does not exist on type 'Cypress & EventEmitter'.". It doesn't find the property in typescript.

@ghost
Copy link

ghost commented Feb 25, 2021

Hi, I'm also facing this issue since migrating to typescript. I have an idea to move the Cypress.runner.stop to function in another file with .js extension, maybe that'll help. But I'm not yet trying it myself

@vishalsinghcevo
Copy link

Were you able to make this work? Getting the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants