Skip to content

Yarn 3 + cypress.config.ts does not work #25958

@lmiller1990

Description

@lmiller1990

Ref: #22747 -> #22747 (comment)

If you are using Yarn 3 with TypeScript and have a cypress.config.ts, it will error when opening Cypress, no matter what. You cannot work around the issue. The only fix would be to use js or mjs extensions. There's an example here: #25959

Repro: yarn3.zip

Ideally, we should correctly consume the cypress.config.ts using the strategy we use for any package manager other than Yarn 3, which seems to work great. Based on some research, this may not be possible (or maybe it is?) using our current strategy, which uses loader API for ESM and require API for CJS. I suspect the CJS might be easier to work out.

Neither works with TS and Yarn 3.

May be relevant: yarnpkg/berry#4044

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions