badeball / cypress-cucumber-preprocessor

Run cucumber/gherkin-syntaxed specs with Cypress
MIT License
1.32k stars 147 forks source link

Incompatible types with esbuild 0.21.5 #1198

Closed rowleyj closed 3 months ago

rowleyj commented 3 months ago

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

Checklist

badeball commented 3 months ago

The esbuild-ts example, which uses all latests versions, works seemingly fine. You need to provide a reproducible example to your issue.

hishchuk commented 3 months ago

Hi! I have the same issue image. It looks there is kind of inconsistency. As a temporary solution I'm adding highlighted line below. Please let me know if more details are needed. image

badeball commented 3 months ago

Please let me know if more details are needed.

Alright - your post doesn't provide any useful information to this issue. If you want to see this issue resolved and contribute to that, you can provide a reproducible example, like OP has been asked of twice now: one in the issue template, twice in the comments.

hishchuk commented 3 months ago

Hi,

In your example could you please just use attached tsconfig file. tsconfig.json

Unfortunately I cannot change moduleResolution property, so workaround was used. I guess this is the main reason of the problem.

Thank you

badeball commented 3 months ago

I've updated dependencies, including esbuid, which I believe fixes this, released as v20.0.7. Try it out.

hishchuk commented 3 months ago

Everything is fine now. Thanks a lot!