Typescript: compilation error when using plugin with and Cypress >= 13.5.1 (no exported member BrowserLaunchOptions)
mmisty opened this issue · 0 comments
mmisty commented
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