Skip to content

cypress v15 support for node v20.x #6264

@laurentS

Description

@laurentS

Description

In the migration notes for cypress v15, it is mentioned that it works on node v20+, but trying to run cypress v15.0.0 with older node v20 will fail at startup with variations of Your configFile is invalid and

import { defineConfig } from 'cypress';
^^^^^^

SyntaxError: Cannot use import statement outside a module

From node v20.6.0 onwards, the issue is fixed.

Obviously nobody would run a version of node that's over 2 years old, but filing this just in case someone else gets stuck trying to work this out 😅

With cypress v14.x, there was no issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions