https://cypress.io logo
Getting error - Cannot find module '@badeball/cypr...
# i-need-help
p
I am getting error: "Cannot find module '@badeball/cypress-cucumber-preprocessor/esbuild' or its corresponding type declarations" in cypress config file. Below is the config file details. please let me know if any issue with this. Getting error at import createEsbuildPlugin. import { defineConfig } from "cypress"; import createBundler from "@bahmutov/cypress-esbuild-preprocessor"; import { addCucumberPreprocessorPlugin } from "@badeball/cypress-cucumber-preprocessor"; import createEsbuildPlugin from "@badeball/cypress-cucumber-preprocessor/esbuild"; export default defineConfig({ e2e: { specPattern: "**/*.feature", async setupNodeEvents( on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions ): Promise { // This is required for the preprocessor to be able to generate JSON reports after each run, and more, await addCucumberPreprocessorPlugin(on, config); on( "file:preprocessor", createBundler({ plugins: [createEsbuildPlugin(config)], }) ); // Make sure to return the config object as it might have been modified by the plugin. return config; }, }, });