Currently facing an issue with importing certain dependencies in Cucumber. The error message I received is as follows:
Running: features\my_feature.feature... (1 of 1)
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Oops...we found an error preparing this test file:
cypress\integration\features\my_feature.feature
The error was:
Error: Cannot find module 'C:gitdevelopPROJECT
ode_modulescypress-cucumber-preprocessorlib/resolveStepDefinition' from 'C:\git\develop\PROJECT\cypress\integration\features'
This occurred while Cypress was compiling and bundling your test code. This is usually caused by:
- A missing file or dependency
- A syntax error in the file or one of its dependencies
Fix the error in your code and re-run your tests.
Unable to execute the features due to this issue. It seems that the problem lies in line 3. To elaborate, the file path should be:
C:\git\develop\PROJECT\cypress\node_modules\cypress-cucumber-preprocessor\lib\resolveStepDefinition
, but the library interprets the '\n' substring within '\node_modules' as a line break, resulting in it not recognizing the backslash in the path. Not sure if this explanation makes sense.
Uncertain of what additional information to provide, as it doesn't seem to be related to configuration settings. If you have any insights or require further details, please let me know. Willing to share anything necessary for resolution.