-
-
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
SyntaxError: Unexpected token ... when using cypress with webpack-preprocessor #4008
Comments
I think Cypress uses an putdated node version internally, and we use Node >8.11 features in Vue CLI, like Object rest spread. That probably breaks it. |
@LinusBorg Do you want me to open a issue on their repo then? |
Are there any updates to this? Running cypress worked with 3.5.0 but is broken in the current version of vue-cli. |
Cypress updated their internal node version from node 8.2.1 to node 8.9.3 in Cypress
That version was released on 5/17/2019, a day after this issue here was opened, so I assume that updating your Cypress dependency should make it work. You may have to clear your lockfile. |
I'll close this assuming the new version fixed this problem. @Bastczuak Please ping me if my assumption turns out to be incorrect. |
@LinusBorg upgrading cypress to |
@LinusBorg thanks mate! All good now. |
Version
3.7.0
Reproduction link
https://github.com/Bastczuak/vue-cli-issue
Environment info
Steps to reproduce
Install node modules with yarn and try to run the e2e tests with yarn test:e2e and see the error message.
What is expected?
The e2e will run with no errors.
What is actually happening?
Cypress throws an exception when trying to run e2e tests.
I'm using https://github.com/cypress-io/cypress-webpack-preprocessor for bundling my tests with webpack. It works when using @vue/cl-service in version 3.5.0.
The text was updated successfully, but these errors were encountered: