Closed pixelass closed 3 years ago
I know its a bit late, but possibly it helps another person. Just use an ES6 import instead of require, like this:
import dotenvPlugin from 'cypress-dotenv';
also:
const {default: dotenvPlugin} = require("cypress-dotenv");
cypress/plugins/index.js
versions: