badeball / cypress-cucumber-preprocessor

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

Issue with cypress-esbuild-preprocessor: TypeError - (0 , cypress_esbuild_preprocessor_1.default) is not a function #1150

Closed ahmadrymera closed 6 months ago

ahmadrymera commented 6 months ago

Current behavior

I am encountering an issue with the cypress-esbuild-preprocessor plugin when running Cypress tests. The error I am facing is:

TypeError: (0 , cypress_esbuild_preprocessor_1.default) is not a function
    at C:\Users\Administrator\Documents\Playground\CypressTS\cypress.config.ts:15:18
    at step (C:\Users\Administrator\Documents\Playground\CypressTS\cypress.config.ts:33:23)
    at Object.next (C:\Users\Administrator\Documents\Playground\CypressTS\cypress.config.ts:14:53)
    at fulfilled (C:\Users\Administrator\Documents\Playground\CypressTS\cypress.config.ts:5:58)

Error Screenshot

Desired behavior

I expect the Cypress tests to run without encountering the mentioned TypeError.

Versions

Checklist

Additional Information:

  1. This is the version of the plugins I am using:
    • @badeball/cypress-cucumber-preprocessor: ^20.0.1
    • @bahmutov/cypress-esbuild-preprocessor: ^2.2.0
    • cypress: ^13.6.3
    • typescript: ^5.3.3
  2. I have followed the quick start guide and implemented the TypeScript configurations as recommended.
badeball commented 6 months ago

Omitting to provide a reproducible example is completelly inappropriate.

Secondly, saying "I have [..] implemented the TypeScript configurations as recommended" means nothing to me, as I don't know how you've interpreted any recommendation.

Furthermore, the code you initially provided, but edited away, does not constitute a reproducible example. You need to read the instructions for logging issues again before opening up any more issues.

Lastly, this is answered in the FAQ.