Your configFile is invalid: /path/to/cypress.config.js
The component.setupNodeEvents() function must be defined with the following signature:
{
component: {
setupNodeEvents(on, config) {
// configure tasks and plugins here
}
}
}
Instead we saw:
"some string"
https://on.cypress.io/plugins-api