Skip to content
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

Present a clear error message when using an non supported version of node #22448

Open
mjhenkes opened this issue Jun 22, 2022 · 0 comments
Open
Labels
E2E Issue related to end-to-end testing type: feature New feature that does not currently exist

Comments

@mjhenkes
Copy link
Member

What would you like?

When a user attempts to use cypress with an older unsupported version of node they are presented with error messages like this:

~/.cache/Cypress/10.1.0/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_plugins.js:40    
  invoke = (eventId, args = []) => {                                                                                                     
         ^                                                          
                                                                                                                                         
SyntaxError: Unexpected token =                                                                                                          
    at new Script (vm.js:79:7)                                      
    at createScript (vm.js:251:10)                                                                                                       
    at Object.runInThisContext (vm.js:303:10)                                                                                            
    at Module._compile (internal/modules/cjs/loader.js:656:28)     
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)                                                                               
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3) 
    at Module.require (internal/modules/cjs/loader.js:636:17)       
    at require (internal/modules/cjs/helpers.js:20:18)              
    at Object.<anonymous> (~/.cache/Cypress/10.1.0/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_require_async_child.js:6:24)
    at Module._compile (internal/modules/cjs/loader.js:688:30)                                                                           
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)                                                                             
    at Function.Module._load (internal/modules/cjs/loader.js:529:3) 

The fix is simple (upgrade node) but the error does not provide user guidance on how to correct it.

Why is this needed?

This issue has been logged several times.
#22332
#22312
#22088

Fixing this issue would allow users to help themselves and reduce support effort.

Other

No response

@mjhenkes mjhenkes added the type: enhancement Requested enhancement of existing feature label Jun 22, 2022
@mschile mschile added triage and removed triage labels Aug 18, 2022
@nagash77 nagash77 added E2E Issue related to end-to-end testing and removed E2E-core labels Nov 8, 2022
@nagash77 nagash77 added Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team. and removed routed-to-e2e labels Apr 19, 2023
@jennifer-shehane jennifer-shehane added type: feature New feature that does not currently exist and removed stage: fire watch Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team. type: enhancement Requested enhancement of existing feature labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E Issue related to end-to-end testing type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

4 participants