cypress-io / cypress-realworld-app

A payment application to demonstrate real-world usage of Cypress testing methods, patterns, and workflows.
https://docs.cypress.io
MIT License
5.48k stars 2.2k forks source link

Migrate away from Yarn 1 (Classic) as package manager #1423

Open MikeMcC399 opened 11 months ago

MikeMcC399 commented 11 months ago

Feature

Migrate away from Yarn Classic v1 as package manager. This could be to Yarn Modern v4 or to npm.

Reason

Yarn 1 (Classic) is stated to be frozen. The Yarn 1 GitHub repo contains the "About" text:

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry"

The cypress-io/cypress-realworld-app should be based on current and supported technologies in order to provide a useful example of Cypress in practice.

jennifer-shehane commented 9 months ago

Welcome to any PRs to update this

MikeMcC399 commented 9 months ago

@jennifer-shehane

Related issues that @astone123 raised are:

See also

It may be difficult to migrate before these issues are addressed.

MikeMcC399 commented 8 months ago

npm

Attempting to migrate from Yarn Classic to npm hits multiple fatal dependency issues running npm install.

Yarn Modern

After migrating from Yarn Classic to Yarn Modern (4.1.0) executing yarn dev crashes with

[start:api:watch] Error: Cannot find module '../src/aws-exports' [start:api:watch] [nodemon] app crashed - waiting for file changes before starting...

Edit: Is not currently crashing with Yarn 4.4.0. Possibly due to PR https://github.com/cypress-io/cypress-realworld-app/pull/1513.