Skip to content

Incompatible types with esbuild 0.21.5 #1198

@rowleyj

Description

@rowleyj

Current behavior


 Property 'with' is missing in type 'import("<PATH>/node_modules/@badeball/cypress-cucumber-preprocessor/node_modules/esbuild/lib/main").OnResolveArgs' but required in type 'import("<PATH>/node_modules/esbuild/lib/main").OnResolveArgs'.
npm ERR! 
npm ERR! 27             plugins: [createEsbuildPlugin(config)],

Desired behavior

Since ^0.21.2 is listed, we expect this package to work with all patch version of esbuild or restrict it to < 0.21.5. Note that this is a brand new version of esbuild.

Test code to reproduce

This is not a functional issue, just a type issue that causes build errors. Setting esbuild to 0.21.3 resolved the issue, but logging as I anticipate others may run into this.

Versions

  • Cypress version: "^13.6.6"
  • Preprocessor version: "^19.2.0"
  • Node version: 18.18.2

Checklist

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions