I'm running cypress on docker using docker run command. I got the following error:
Oops...we found an error preparing this test file:
> cypress/support/commands.js
The error was:
Error: Webpack Compilation Error
./cypress/support/commands.js
Module not found: Error: Can't resolve 'cypress-iframe' in '/e2e/cypress/support'
resolve 'cypress-iframe' in '/e2e/cypress/support'
Parsed request is a module
using description file: /e2e/package.json (relative path: ./cypress/support)
Field 'browser' doesn't contain a valid alias configuration
Looked for and couldn't find the file at the following paths: or is not a directory
[/e2e/cypress/support/node_modules]
[/e2e/cypress/node_modules]
[/e2e/node_modules]
[/node_modules]
@ ./cypress/support/commands.js 5:0-25
I will be grateful for help, thanks