-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
cli-plugin-e2e-cypress test throws exception after tests succeed at the end - TypeError: server.stop is not a function #7230
Comments
A temporary fix is to downgrade cli-plugin-e2e-cypress to 4.5.19. |
I have the very same issue on Cypress v9.7.0. |
same issue with cypress v10.3.1 |
+1, this is blocking my project upgrading to the latest Cypress version. |
+1 Any updates on this? |
But that version isn't working for me with Cypress 10 |
+1 Any updates on this? |
Would love a fix for this, its also blocking our upgrade to Cypress 10! |
Hey, can we have an estimated resolution time-frame for this issue? |
is this cli-plugin-e2e-cypress version compatible with cypress 10? |
Same error for me, my libs:
|
+1 here. It's not possible to use cypress 10 right now. |
Hi, |
Any updates on this? |
I agree, quite surprising that this hasn't been resolved yet. As I work around, I created the following npm script: |
I have the same problem in vue2. however, it does work in vue3 |
Ran into this too. Ended up upgrading to Naruto and switched to Vite. It was quite painless actually and a much better dev/test experience. Vue CLI is abandoned so I'm not counting on this is getting resolved. |
To follow-up on my previous comment, we are indeed still stuck on Vue 2.7, happy to hear that upgrading to Vue 3 and Vite will resolve the problem. Using Vue 2 and Vue CLI, I did improve my npm script to the following, using the start-server-and-test package suggested in the Cypress doc (https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server):
I got around the limitation of my CI/CD runner not being able to execute npm by passing command strings instead of npm script names to start-server-and-test (the docs for the module mention that you can do this if you read them in detail https://github.com/bahmutov/start-server-and-test) |
Try upgrading Here is my situation: before:
after:
|
In case this is relevant for someone again, here is how I fixed it for our project. We've Vue 2, and were running Cypress 9.5.2, and ran to this error when trying to update it to a more recent version. Here's a change that would fix it: I used patch-package as a devDependency to apply the fix - I did the modifications needed, then ran patch-package for the module. Then, added patch-package to postinstall. Here's step-by-step for yarn:
Voilà. It should work now. It creates a patch file which it applies at the end of each install to the module. |
Version
5.0.8
Environment info
Steps to reproduce
I tried on Cypress 9.5.1 and 10.3.0. After my tests succeed, the server attempts to close, but the cli-plugin-e2e-cypress fails to close the server:
What is expected?
The server should close properly.
What is actually happening?
cli-plugin-e2e-cypress is claiming that there is no stop() function on the server.
The text was updated successfully, but these errors were encountered: