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

Typescript: compilation error when using plugin with and Cypress >= 13.5.1 (no exported member BrowserLaunchOptions) #235

Open
mmisty opened this issue Nov 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mmisty
Copy link

mmisty commented Nov 22, 2023

What does not work?
running tsc for the project using plugin throws error:

node_modules/@cypress-audit/lighthouse/index.d.ts:44:26 - error TS2724: 'Cypress' has no exported member named 'BrowserLaunchOptions'. Did you mean 'BeforeBrowserLaunchOptions'?

44   launchOptions: Cypress.BrowserLaunchOptions
                            ~~~~~~~~~~~~~~~~~~~~


Found 1 error in node_modules/@cypress-audit/lighthouse/index.d.ts:44

How to reproduce?

  • project with typescript and cypress 13.6.0
  • @cypress-audit/lighthouse installed
  • compile project by tsc (skipLibCheck option in tsconfig.json should not exist of equql 'false')

Expected behavior
No error when tsc ran with skipLibCheck=false

@mmisty mmisty added the bug Something isn't working label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant