Cypress' built-in lodash types are incompatible with TypeScript 5.2+. #29519
Labels
stage: needs investigating
Someone from Cypress needs to look at this
type: typings
Issue related to Cypress types (for TypeScript)
Current behavior
Cypress' contains the following line in
node_modules/cypress/types/lodash.d.ts
, which is created by the cypress package somehow (it is not a normal node_modules dependency, and not part of source):This is based on lodash types 4.14.168, last updated a little over 3 years ago.
When TypeScript 5.2+ is set up with
"lib": ["esnext"]
, the following error occurs when runningtsc
:Desired behavior
Cypress can exist in a TypeScript project using
"lib": ["esnext"]
without errors.Test code to reproduce
Minimal repro at https://github.com/threehams/cypress-typescript-5-4
Cypress Version
13.9.0
Node version
20.10.0
Operating System
MacOS 14.4.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: