-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esm causes an error in cypress runner in windows 7/10 but works ok in linux #3678
Comments
The default plugins import must export the config like below in order to be properly read by Cypress: export default (on, config) => {} Since the If you want to update the default imported file, you can add |
@jennifer-shehane
adding I can't pick up on anything special you would have done there. |
We'll have investigate this to figure out what's wrong. We'd like to support Looks like this error is being thrown when the
A very quick investigation shows that it's probably related to the combination of Electron + Windows + esm. |
I use elementary OS 5.0 Juno (built on Ubuntu 18.04.2 LTS / Linux 4.15.0-70-generic / GTK 3.22.30) and also getting the same error: "Can't start server |
Since this issue hasn't had activity in a while, we'll close the issue until we can confirm this is still happening. Please comment if there is new information to provide concerning the original issue and we'd be happy to reopen. |
@jennifer-shehane this is till an issue and it's not related to Windows. Can we reopen it?
When trying to use ESM inside my plugins file I get this error: |
Current behavior:
Using esm in windows 7/10 causes cypress test runner to throw an error about the plugin file
When using command
error:
node_modules/.bin/cypress run
however works successfully across linux/windows7/windows10node_modules/.bin/cypress open
works successfully in linuxDesired behavior:
should also work successfully on windows 7/10
Steps to reproduce: (app code and test code)
https://github.com/janusqa/janusqa-cypress-test-tiny-plugin3-esm
Run on windows using
Versions
Windows: 7/10
Cypress package version: 3.1.5
Cypress binary version: 3.1.5
The text was updated successfully, but these errors were encountered: